Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Rakesh Khob
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!