Question | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% December Month Discount - Avail now

Question

M
Post on 30/08/2015

Is the below code correct...its not working for me.

driver.findElement(By.xpath("a[text()='Friends']")).click();

M
Reply on 30/08/2015

[quote="swethamovva51@gmail.com":1631b9qs]Is the below code correct...its not working for me.

driver.findElement(By.xpath("a[text()='Friends']")).click();[/quote:1631b9qs]

whats not working. are you getting any exception.

M
Reply on 03/09/2015

your xpath should start with //