NguyenLe Posted June 16, 2017 Share Posted June 16, 2017 (edited) <span class="dashicons dashicons-plus"></span> I've tried to: #include <FF.au3> $path=_FFXPath("//span[@class='dashicons dashicons-plus']") _FFClick($path) But it dosen't work I don't know where was wrong Can you help me? Edited June 16, 2017 by NguyenLe Link to comment Share on other sites More sharing options...
junkew Posted June 16, 2017 Share Posted June 16, 2017 what does chrome tell you? is your xpath in itself correct? not sure if Firefox has some similar devtool to help out If that works then next stip is to look into FF.AU3 issue(s) which is not likely as it passes thru directly the xpath Press F12 to open up Chrome DevTools. Elements panel should be opened by default. Press Ctrl + F to enable DOM searching in the panel. Type in XPath or CSS selectors to evaluate. If there are matched elements, they will be highlighted in DOM. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
NguyenLe Posted June 16, 2017 Author Share Posted June 16, 2017 I have found Xpath in Code via Chrome Devtools Link to comment Share on other sites More sharing options...
junkew Posted June 16, 2017 Share Posted June 16, 2017 be a little more clear on what you ask and what you tried. Do you have it working for a span class without spaces? Can you reproduce on any other public website so others can try? Your example in post 3 seems not to have a relationship with post 1 as you use a different element You should realize that people reading this forum cannot reach your application so make a reproducable script as easy as possible so others can help you. Which url? Which application? Reproducable location? ..... FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
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