Jump to content

How to click THIS Login button


Dent
 Share

Recommended Posts

#include <IE.au3>

Global $link = 'http://tennisinsight.com'


Local $oIE = _IECreate($link)

$tags = $oIE.document.GetElementsByTagName("button")

For $tag in $tags
$class_value = $tag.GetAttribute("class")
If string($class_value) = "btn btn-info" Then

    $oCorrectObj = $tag
    If $oCorrectObj.parentElement.parentElement.parentElement.GetAttribute("class") == "pull-right user-module visible-sm visible-xs  " Then
    $oCorrectObj.click()
    EndIf
EndIf
Next

 

Link to comment
Share on other sites

Hi everyone,

Thanks for all responding so quickly - Muhammad I shall try your example in a moment, I don't think I'd ever have worked that out, thank-you!

Sorry 232showtime I did put ie as a tag but should have been more explicit.

AutoBert - yes I did, I had something similar to what Muhammad has posted that was failing and I had tried FormSubmit but it wasn't recognising the form object.

Just when I think I'm getting competent with AutoIt something that should be simple comes and stumps me! Such is life.

Link to comment
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
 Share

×
×
  • Create New...