I did a search for the same on Google as i found trail below option. Is there any other option to do apart from that...??public bool IsElementPresent(string xpath)
{
try
{
driver.FindElement(By.XPath(xpath));
return true;
}
catch (Exception)
{
return false;
}
}
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/EOZOJg9dx2QJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/AagJ4P8Y6CIJ.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/7-YDpRvWJ3oJ.
ExpectedConditions.presenceOfAllElementsLocatedBy(locator) OR
ExpectedConditions.presenceOfElementLocated(locator)
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/BLybAilofZMJ.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.