Automationaddict Posted November 23, 2018 Posted November 23, 2018 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.
Danp2 Posted November 23, 2018 Posted November 23, 2018 There are lots of examples on the forum. For instance -- Latest Webdriver UDF Release Webdriver Wiki FAQs
junkew Posted November 23, 2018 Posted November 23, 2018 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 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Automationaddict Posted December 2, 2018 Author Posted December 2, 2018 Thanks guys for your time and help I tried a lot but it's not being successful. Suppose I am having the url as "www.xyz.com" and the class is "timerdf1", what should be the code to just click on this? Thanks again in advance.
junkew Posted December 2, 2018 Posted December 2, 2018 https://www.autoitscript.com/autoit3/docs/libfunctions/_IETagNameGetCollection.htm FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now