Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Clicking on a web tag with _ieaction

$
0
0

Hi Everyone. 
  
I used the script below on a webpage I need to click a button on. It went through a ton of message boxes until it found the button I'm looking for.

 

Tagname: BUTTON

innerText:Go

   
 
 $oElements = _IETagNameAllGetCollection($oIE)
For $oElement In $oElements
MsgBox(0, "Element Info", "Tagname: " & $oElement.tagname & @CR & "innerText: " & $oElement.innerText)
Next
 

 

I'm not sure how to save the tag as a variable, let's call it $tag, so that I can _ieAction($tag, "click") to click on this button.  Since it didn't have an ID I had to resort to this.  Does anyone have any knowledge on the syntax for this?  I'm just not sure how to tell it to save the exact tag on the webpage to my $tag.

 

Attached a screenshot

 

Thank you very much!
 

Attached Thumbnails

  • result.png

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>