Jump to content

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


Recommended Posts

<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
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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