Jump to content

Recommended Posts

Posted (edited)

I am new to AutoIT so my apologies if this is trivial, but I am only finding IE references.

Is there a library besides the IE one to control browser windows? I will not use IE, only Edge or Chrome (possibly FireFox if there is no other choice)

I have the script I am working on doing everything it needs to do but the last item, opening a webpage and signing in runs into a snag as there is an accept dialog screen, that displays after login,  that must be okayed

It is the active window, so I need to get the Button element, set its focus and click it (it is only enabled/clickable via javascript when you hover over it, greyed out otherwise)

 

Edited by dinotom

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

  • Similar Content

    • By SugarBall
      Hi there...
      i have this script and i want to make it run in other browsers such as mozilla, chrome, opera or even _html.au3
      #include <IE.au3> Local $oIE = _IECreate("https://www.example.com/") Sleep (10000) Local $oFrame = _IEFrameGetCollection($oIE, 0) Local $oAs = _IETagNameGetCollection($oIE, "a") For $oA In $oAs $sDataTarget = Execute("$oA.attributes.getNamedItem('data-target').value") If $sDataTarget = "example" Then _IEAction($oA, "click") EndIf Next the problem is at these two functions which i can not find at the other browsers: 
      _IETagNameGetCollection _IEFrameGetCollection Can anyone tell how to handle with this problem.. should i create these functions as new or what?
    • By Servant
      Why this kind of code below, getting the tag name's element of the ID's element: #include <IE.au3> $oIE = _IECreate("http://www.example.com/", 0, 1, 1) Sleep(5000) $element = $oIE.document.getElementById("element_id") $tags = $element.getElementsByTagName("IFRAME") For $tag In $tags $msg = $tag.contentWindow.document.body MsgBox(0, "Message", $msg.innerHTML) Next And also this code, getting the class name's element of the ID's element: #include <IE.au3> $oIE = _IECreate("http://www.example.com/", 0, 1, 1) Sleep(5000) $element = $oIE.document.getElementById("element_id") $classes = $element.getElementsByClassName("class_name") For $class In $classes $msg = $class MsgBox(0, "Message", $msg.innerHTML) Next Returns the error 'Variable must be of type "Object".':
      Variable must be of type "Object".: MsgBox(0, "Message", $msg.innerHTML) MsgBox(0, "Message", $msg^ ERROR Instead of the inner HTML sources of the tag name's elements and the class name's elements?
      What is the right way to do those?
×
×
  • Create New...