dadalt95 Posted February 13, 2018 Posted February 13, 2018 Perform a simple google search! The script below works fine until fill the google form! What I can't find is how to submit the form, tried a couple of ways and none of them worked. #include <IE.au3> $oIE = _IECreate ("www.google.com") $o_form = _IEFormGetObjByName ($oIE, "f") $o_login = _IEFormElementGetObjByName ($o_form, "q") $username = "80251369" _IEFormElementSetValue ($o_login, $username) $o_numer = _IEGetObjByName($o_form, "btnK") _IEAction ($o_numer, "click") The code runs without any problem. I don't know how to proceed! Thanks in advance!
Danp2 Posted February 13, 2018 Posted February 13, 2018 Have you tried _IEFormSubmit instead of _IEAction? dadalt95 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
dadalt95 Posted February 13, 2018 Author Posted February 13, 2018 3 minutes ago, Danp2 said: Have you tried _IEFormSubmit instead of _IEAction? Jessusss, you are so damn good! Thanks danp2! I owe you!
jdelaney Posted February 13, 2018 Posted February 13, 2018 You can also blur out of the search input field to perform the search. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
dadalt95 Posted February 13, 2018 Author Posted February 13, 2018 12 minutes ago, jdelaney said: You can also blur out of the search input field to perform the search. _IEAction ($o_numer, "blur") This didn't work! I don't know why!
Danp2 Posted February 13, 2018 Posted February 13, 2018 @dadalt95 That's the button, not the input field. :-) Latest Webdriver UDF Release Webdriver Wiki FAQs
dadalt95 Posted February 13, 2018 Author Posted February 13, 2018 1 minute ago, Danp2 said: @dadalt95 That's the button, not the input field. :-) I tried: _IEAction ($o_numer, "blur") _IEAction ($o_form, "blur") _IEAction ($oIE, "blur")
jdelaney Posted February 14, 2018 Posted February 14, 2018 IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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