DKarap / web-driver

crawler that use the webdriver, ghostdriver/phantomJS
0 stars 1 forks source link

Keep relative Xpath for each link based on the firebug implementation #15

Closed DKarap closed 10 years ago

DKarap commented 10 years ago

this is computing the xpath based on the element's id if exist..

DKarap commented 10 years ago

Very useful tips: http://stackoverflow.com/questions/3454526/how-to-calculate-the-xpath-position-of-an-element-using-javascript