Interview Question1 | Selenium Forum
M
Posted on 07/05/2016
Hi team,

One interview question please answer.

1 In an web application there is a hyperlink and i am able to locate the element using firepath. If i try to click on element using the locator i am unable to click in selenium.
But i want to click on it. What will be the possible work around for this.

Thanks

M
Replied on 08/05/2016

try any other way partial xpath, link text etc.


M
Replied on 19/05/2016

Tried for everything and i am able to locate but not to perform using selenium.


M
Replied on 19/05/2016

send a screen shot.


M
Replied on 19/05/2016

using JavaScriptExecutor or actions class ?


M
Replied on 19/05/2016

Faced same issue in Webuy.com exercise example, while clicking on "View Basket", used Partial xpath

//driver.findElement(By.linkText("View basket")).click(); // Element not found

driver.findElement(By.xpath("//td[@class='basketTableCellLnk']/a[1]")).click();


M
Replied on 21/05/2016

send the entire code.