Why are you trying to select this element? From the mention of Selenium, I
guess you are running some e2e test? Have you tried input#
P_300449.G_300561.Q_201113?


On 30 June 2015 at 22:18, Derek W <[email protected]> wrote:

> Hi guys,
>
> I've been banging my head all day with this and cannot seem to find a
> solution.  We have this input field:
>
> <label for='P_300449.G_300561.Q_201113' class='col-md-4 control-label'>Rep 
> ID</label>        <div class='col-md-8 controls'>          <div 
> class='input-group ifs-question-input-group'>    <input type='text' 
> id='P_300449.G_300561.Q_201113' class='form-control ifs-question-value' 
> name='P_300449.G_300561.N_NewAccount^FACode' value='' maxlength='4' 
> data-options='{"minSize":4.0,"maxSize":4.0,"eventBinders":[{"eventName":"blur","fn":"validate","context":"this"},{"eventName":"blur","fn":"_IFSMainRuleBody"}]}'
>  title='' placeholder='' >            <span class='input-group-btn'>          
>     <button type='button' class='btn btn-xs btn-default ifs-question-audit' 
> title='For audit history click here' tabindex='-1' 
> data-options='{"eventBinders":[{"eventName":"click","fn":"openAuditToolTip","args":["this","c918eb76-1d5b-40a3-b1ae-ae05a7257be0^201113^-1^-1^"]}]}'>
>                 <span class='glyphicon glyphicon-time'></span>              
> </button>              <button type='button' class='btn btn-xs btn-default 
> ifs-question-help' title='For more help click here' tabindex='-1' 
> data-options='{"eventBinders":[{"eventName":"click","fn":"openHelpWin","args":["this","","Modal"]}]}'>
>                 <span class='glyphicon glyphicon-question-sign'></span>       
>        </button>            </span>          </div>        </div>
>
>
> Through Firefox, a simple locator on id (P_300449.G_300561.Q_201113) works 
> just fine.  I know that's not a good identifying name but just using this as 
> an example.  The id actually never changes, just not a very useful id.
>
>
> However, in IE and Chrome, selenium us unable to find the element.  I have 
> tried using variations of xpath and css as well as id, name and other 
> attributes without any success.  Does anyone have any ideas?
>
>
> I have tried:
>
> //*[@id=P_300449.G_300561.Q_201113]
>
> //*[@id='P_300449.G_300561.Q_201113']
>
> //input[@id=P_300449.G_300561.Q_201113]
>
> //input[@id='P_300449.G_300561.Q_201113']
>
> input[id=P_300449.G_300561.Q_201113]
>
> input[id='P_300449.G_300561.Q_201113']
>
>
> I even tried things like:
>
> //label[text()='Rep ID']/..//input
>
>
> Again, like I said, all those variations work fine in firefox but I cannot 
> get selenium to recognize this input element at all in IE or Chrome.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to