Question | Selenium Forum
M
Posted on 30/08/2015
Is the below code correct...its not working for me.

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

M
Replied 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
Replied on 03/09/2015

your xpath should start with //