Hi
I am trying to get to an anchor link in a page using selenium webdriver.I need to get the xpath for the Group Builder text But I am not able to detect using link. Could someone help me out?
I am also attaching a image with the tag details
Thanks
Meena
public WebElement waitForElementToAppear(final By by, int waitFor) {
WebDriverWait wait = new WebDriverWait(webDriver, waitFor);
return wait.until(new ExpectedCondition<WebElement>() {
public WebElement apply(WebDriver input) {
stdout.println("Waiting for: " + by.toString());
WebElement element = webDriver.findElement(by);
stdout.println("Found: " + by.toString());
return element;
}
});
}
public void openPage() {
waitForElementToAppear(By.xpath("//a[contains(.,'Alert Builder')]" , 30).click();
}
Hope this works ... if it fails print stack trace
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/JJLBqTSTj60J.
For more options, visit https://groups.google.com/groups/opt_out.
With whatever XPath you have, can you please run a driver.findElements() and print the size of the WebElement list? That should give a clear cut confirmation on whether the XPath resolves to more than one WebElement.I also saw a ElementNotVisibleException. Selenium is still seeing the Element as Hidden here.So you could try doing one of the following :1. Perform an action which would cause the Element to become visible.
2. Use Javascript to flip the element into being visible.
On Saturday, March 2, 2013, MM wrote:
No this not for public. It is an internal website.
On Friday, March 1, 2013 2:47:02 PM UTC-8, ASP wrote:is that web portal live ? that will help more--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/JJLBqTSTj60J.
For more options, visit https://groups.google.com/groups/opt_out.