This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Testing and the fly likes checking the presence of link in Selenium WebDriver without raising any exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "checking the presence of link in Selenium WebDriver without raising any exception" Watch "checking the presence of link in Selenium WebDriver without raising any exception" New topic
Author

checking the presence of link in Selenium WebDriver without raising any exception

Rakesh Khob
Greenhorn

Joined: Jul 03, 2011
Posts: 9
I have tried googling this but couldn't find a satisfying solution.
I am using WebDriver and I want to check if a link is present on the webpage or not and there's a logic which follows after this check so i want to do this inside an if{} block.
Is there a way to check the presence of a link without raising any exception(if it is not found)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: checking the presence of link in Selenium WebDriver without raising any exception
 
Similar Threads
JSP and browser error?
xml validation
ResultSet and count urgent please help
how to call a external javascripr file in my core java program?
load java program on startup?