Jump to content

How to click at a particular thing if we are only having it’s “class” in the source code and not the “object” or “id”?


Recommended Posts

As I am very new to this language, kindly suggest me how to click at a particular thing if we are only having it’s “class” in the source code and not the “object” or “id”? 

Like we have GetobjectById or GetObjectByName, do we have something for class?

Please suggest me a method to access it.

Thanks in advance.

Link to comment
Share on other sites

There are different ways depending on your objecttype. See FAQ 31 for different solutions based on classtype from Windows, Java, UIA, WebDriver

On Windows controls we have index property that can help to get n-th object of certain class.

For HTML you have to calculate yourself or iterate the collections you get

https://www.autoitscript.com/autoit3/docs/libfunctions/IE Management.htm

Study all functions with get or collection in them

Link to comment
Share on other sites

  • 2 weeks later...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...