Daniel Eugen
Daniel Eugen

Reputation: 2780

Generating CSS Selector in Firefox

Well i used to use htmlagilitypack as well as xPath to scrap some info from websites but i have read that css selectors are much faster so i searched for good engine for css and i found CsQuery; However, i am still confused as i don't know how to get the css path of an element.

In xPath i have used a firefox plugin called xPath checker that returned a fine xPaths like this

id('yt-masthead-signin')/button

But i can't find an equivalent one for CSS. So if someone helped my i will really appreciate it because i don't find and answer on google for my question specifically.

Upvotes: 0

Views: 717

Answers (1)

Yi Zeng
Yi Zeng

Reputation: 32855

Install Firebug + Firepath

Click the selecting button to select something on the page, then it can generate either xpath or css selector. However, you need some changes to make the generated ones more efficient.

get css selectors using firepath

Upvotes: 1

Related Questions