java - How to select an option from an input -


i have trouble selecting option form input

                <input id="selectedmotives" ng-disabled="control.ro" ng-required="control.req" ng-change="aggregate(this, control.index, control.indexinparent, true, -1)" ng-click="converttoobject(true);control.showsublist = true" name="loopname" type="text" class="slds-input ng-pristine ng-empty ng-valid-validate-val-lookup ng-valid ng-valid-required ng-touched" ng-model="control.response" vlc-slds-lookup-control="test" ng-init="init(this, control)" vlc-disable-auto-complete="off" autocomplete="off" readonly="readonly" style="">                  <!-- list of matched items -->                 <ul class="slds-list--vertical vlc-slds-list--vertical" ng-click="aggregate(this, control.index, control.indexinparent, true, -1)" ng-show="control.propsetmap.options.length &amp;&amp; control.showsublist" style="">                      <!-- clear option-->                     <li ng-click="converttoobject(false);control.showsublist = false" class="slds-list__item">                         --                     </li>                      <!-- ngrepeat: obj in control.viewobjects|orderby:'value'  --><li ng-click="setviewvalue(obj)" ng-repeat="obj in control.viewobjects|orderby:'value' " class="slds-list__item ng-binding ng-scope" style="">                         internet funciona lento o se cae                     </li><!-- end ngrepeat: obj in control.viewobjects|orderby:'value'  --><li ng-click="setviewvalue(obj)" ng-repeat="obj in control.viewobjects|orderby:'value' " class="slds-list__item ng-binding ng-scope">                         no funciona mi módem                     </li><!-- end ngrepeat: obj in control.viewobjects|orderby:'value'  --><li ng-click="setviewvalue(obj)" ng-repeat="obj in control.viewobjects|orderby:'value' " class="slds-list__item ng-binding ng-scope">                         no me funciona internet                     </li><!-- end ngrepeat: obj in control.viewobjects|orderby:'value'  -->                  </ul>                   <label for="selectedmotives" class="slds-form-element__label ng-binding">motivo del contacto                     <span class="vlc-asterix icon-v-asterix ng-hide" ng-show="control.req">                     </span>                 </label>                  <!-- tooltip template -->               </div 

i want select option "no me funciona internet".

i try this:

list<webelement> drops1=driver.findelements(by.tagname("li"));  drops1.get(3).click(); 

and this

driver.findelement(by.xpath("//li[contains(text(),'no me funciona internet')][@class='slds-list__item ng-binding ng-scope']")).click(); 

but doesn't recognize element.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -