allcapone1912 Posted September 1, 2014 Posted September 1, 2014 _FFFormOptionSelect failed Ive tried a lot of thing with no success html code: <select name='mm' id='month' data='birthday-drop-down' > <option value=''>Month</option> <option title=January value='1'>January</option> <option title=February value='2'>February</option> <option title=March value='3'>March</option> <option title=April value='4'>April</option> <option title=May value='5'>May</option> <option title=June value='6'>June</option> <option title=July value='7'>July</option> <option title=August value='8'>August</option> <option title=September value='9'>September</option> <option title=October value='10'>October</option> <option title=November value='11'>November</option> <option title=December value='12'>December</option> </select> script: #include <ff.au3> If _FFStart("http://onlybestfreestuff.com/test.php", Default, 2) Then Sleep(1000) _FFFormOptionSelect("mm","name","month","id") EndIf I read the FFFormOptionSelect info but stiil no idea
Danp2 Posted September 2, 2014 Posted September 2, 2014 There isn't a form on that page, so _FFFormOptionSelect won't work. You may want to review >this thread for an example of how to make this work without a form. Latest Webdriver UDF Release Webdriver Wiki FAQs
allcapone1912 Posted October 3, 2014 Author Posted October 3, 2014 if someone have the same problem i resolve it with this code $sObj = _FFXPath("//select[@name='mm']//option[position()="2"]","",9) _FFObj($sObj, 'selected', 'selected') if position()="2" will select January
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