Jump to content

Click witout name or id?

Recommended Posts

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>

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")

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

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")


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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...