loulou2522 Posted November 4, 2019 Posted November 4, 2019 <select name="currency-0" class="form-control"> <option selected="selected" value="CHF">CHF</option> <option value="EUR">EUR</option> <option value="GBP">GBP</option> <option value="USD">USD</option> </select> How to fill a value (for example GBP in the select instruction with WD i try this but it dosen' work $select = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//select[@name='currency-' & UBound($aArray)']") _ChromeSetInputValueByName($sSession,'currency-'& UBound($aArray),'GBP')
Danp2 Posted November 4, 2019 Posted November 4, 2019 41 minutes ago, loulou2522 said: _ChromeSetInputValueByName Is this a function that you wrote? If so, it would probably be best to include this source as well so that we can see what is happening "behind the curtain". 😉 42 minutes ago, loulou2522 said: How to fill a value (for example GBP in the select instruction with WD There's a helper function for this -- _WD_ElementOptionSelect. I don't see an example in wd_demo.au3, but I believe there are some examples posted on this forum. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now