Jump to content
Sign in to follow this  
NguyenLe

Click "Span" with class (Firefox) have blank character

Recommended Posts

NguyenLe
<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 by NguyenLe

Share this post


Link to post
Share on other sites
junkew

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

  1. Press F12 to open up Chrome DevTools.
  2. Elements panel should be opened by default.
  3. Press Ctrl + F to enable DOM searching in the panel.
  4. Type in XPath or CSS selectors to evaluate.
  5. If there are matched elements, they will be highlighted in DOM.

Share this post


Link to post
Share on other sites
NguyenLe

I have found Xpath in Code via Chrome Devtools

Untitled.png

Share this post


Link to post
Share on other sites
junkew

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? 
  • .....

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×