Friday 19 September 2014

How to check whether css selector is correct or not in Chrome selenium inspect elements

How to check whether css selector is correct or not in Chrome selenium inspect elements


Open Chrome browser
Right Click on any element click Inspect elements as a result you will get development tool

Select Console Tool there


And after that


$$(" here give your css selector path ")

for xpath we can check like this
$x('//*[@id="header-container"]')

And click enter path should select .

No comments:

Post a Comment