XPath VS CSS Selector

. asked 7 years ago

Hello! Please, can I use XPath address instead of CSS selector for some websites?

If not, please consider my suggestion: allow both XPath and CSS; put both fields or one field with a radio button (XPath/CSS).

So, the plugin would only use the preferred one for respective store. (Or any other better way)

I realize that some stores are trickier when dealing with CSS, but XPath are fine. Other are opposite.

Why not allow both and choose what works better?

Nice Chrome extension for finding/optimising Xpath: XPath Helper



Rakesh P. replied 5 years ago


Does this plugin now allow Xpath instead of css selector? I noticed on this page, you said it does not. However, on the product page, it says it is working with Xpath. Can you please confirm if this works with xpath or not so I can decide to purchase. Thanks

2 Answers
Vasil Y. answered 7 years ago

Hello Eric,

I do not think you can use Xpath at the moment, it works strictly with a CSS selector.

However, your idea is good and I will refer your request to Dave and the developer team as soon as possible.

I will follow up with you and keep you updated on this.

Kind regards!

Dave Hilditch Staff answered 5 years ago

Hi – in the plugin, you can use any of xPath, CSS or Regular Expressions to find the prices on the page. This is a per-website configuration.

Your Answer

Super Speedy Plugins