Search code examples
internet-explorerbuttonautoit

How to click a button on a webpage?


A button on a certain webpage is like this.

<input ng-disabled="form.$invalid" type="submit" value="Log On" class="btn btn-default" style="float: right" />

How do I click it using AutoIt?


Solution

  • Solved my issue.

    I came up with something similar to the above poster.

    $oLinks = _IETagNameGetCollection($oIE, "input")
    For $oLink In $oLinks
        If String($oLink.type) = "submit" And String($oLink.value) = "Log On" Then
              _IEAction($oLink, "click")
              ExitLoop
        EndIf
    Next