elmoi0010 Posted December 16, 2015 Posted December 16, 2015 Hello, am triying to click a button without name or ID. i searched all threads and test all possibly codes triying to figure it out but nope. No one is working. I tryed several methods but with no results. Thanks in advanced to all.This is the HTML of the button. <td><input type="submit" value="Login" class="classname"> <a href="register.php" class="classname">Register</a> </td>and this is my code. $oTDs = _IETagnameGetCollection($oIE, "TD") For $oTD in $oTDs If String(_IEPropertyGet($oTD, "innertext")) = "Login " Then _IEAction($oTD, "focus") _IEAction($oTD, "click") ExitLoop EndIf NextThanks in advanced for the help and for your time, thanks in advanced.
alexandruc Posted December 16, 2015 Posted December 16, 2015 Hi, is the following working?$oTDs = _IETagnameGetCollection($oIE, "input") For $input in $oTDs If String($input.value) = "Login" Then _IEAction($input, "click") ExitLoop EndIf Next elmoi0010 1
elmoi0010 Posted December 16, 2015 Author Posted December 16, 2015 Hi, is the following working?$oTDs = _IETagnameGetCollection($oIE, "input") For $input in $oTDs If String($input.value) = "Login" Then _IEAction($input, "click") ExitLoop EndIf Next I swear i used that one, but not work. And now? Now it working, lol really dont know. Thanks in advanced bro, and sorry my noob question. Good job
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