Jump to content

Recommended Posts

Posted
<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')

 

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...