Jump to content

IE - Clicking in <SPAN


Go to solution Solved by jdelaney,

Recommended Posts

Posted

I search a way to click in <SPAN ...

<TD><INPUT value=Szukaj type=submit> <SPAN class=reset-form jQuery1720635539321740716="9">Wyczyść pola formularza</SPAN> </TD>

Please, a hint, not the solution.

mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Solution
Posted (edited)

 Loop through _IETagNameGetCollection

$object.className() grabs the class attribute value

or .getAttribute to loop by the other attribute

or .innertext for the text in the span

Then, when found, _ieaction, and exit loop

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Posted
I've tried in the same way, but I have not used   $object.className()
Now works as it should.
 
Thanks a lot.
 
mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
×
×
  • Create New...