Java - Selenium - I Can Get Text Of Element But Can't Click Its Link
I am having trouble clicking on a link in a webpage using the selenium webdriver in firefox. Here is a snippet of my code regarding the issue: WebElement option = driver.findEleme
Solution 1:
Try clicking on the span element below your nobr:
option1.findElement(By.xpath("span")).click();
as that seems to be the clickable element.
Solution 2:
You can also try this :
driver.findElement(By.linkText("View Monthly Invoices")).click()
Post a Comment for "Java - Selenium - I Can Get Text Of Element But Can't Click Its Link"