title: Using selenium webdriver, how to click on multiple random links in webpage one after another continuously to detect broken links?
body: <p>I'm trying to write a test script that would essentially test all visible links randomly rather than explicitly specifying them, in a webpage upon login. Is this possible in Selenium IDE/Webdriver, and if so how can I do this? </p>
  
  <pre><code>links = driver.find_element_by_tag_name("a")
  list = links[randint(0, len(links)-1)]
  </code></pre>
  
  <p>The above will fetch all links in the first page but how do I go about testing all or as many links possible without manually adding the above code for each link/page? I suppose what I'm trying to do is <em>find broken links that would result in 500/404s</em>. Any productive way of doing this? Thanks.</p>