This is what the error displays when I use the xpath
What command on the selenium webdriver would I use to click a text which has a xpath of
html/body/div[1]/div/div/div[2]/div[2]/div[2]/a
I tried using
driver.findElement(By.xpath("html/body/div[1]/div/div/div[2]/div[2]/div[2]/a")).click();
but still doesn't work... any suggestions?
See Question&Answers more detail:os