javascript - Selenium Select .getOptions .selectBy.... not working -
like title says cant select functions work on page im working with. here dom `
<div id="ember3366" class="ember-view"> <div class="row m-b-1"> <!----> <div class="col-xs-12 col-md-6 col-lg-3 m-b-1"> <label>category</label> <select class="form-control"> <option value="all"> <option value="spirits">spirits</option> <option value="wine">wine</option> </select> </div>
and here code have written
public void selectcategory(string text) { webelement element = driver.findelement(category); select sel = new select(element); sel.selectbyvisibletext(text); }
nothing gets selected.... when run console print out of .getoptions
[[[[[chromedriver: chrome on xp (c33ce4eedeef26cc3921b3e439811cf5)] -> tag name: option], [[[[chromedriver: chrome on xp (c33ce4eedeef26cc3921b3e439811cf5) -> tag name: option], [[[[chromedriver: chrome on xp (c33ce4eedeef26cc3921b3e439811cf5)] -> tag name: option]]
Comments
Post a Comment