elmoi0010

Click witout name or id?

3 posts in this topic

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
Next



Thanks in advanced for the help and for your time, thanks in advanced.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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