title: Continue script if it doesn't find element
body: <p>I am waiting for a page to load in Selenium like this:</p>
  
  <pre><code> wait.until {
         comp = driver.find_element(:xpath, "//span[contains(text(), 'New Page']")
         if comp.displayed?
            myVal= "Passed"
         end
   }
  </code></pre>
  
  <p>If the new page doesn't load, it gives me a timeout error and the script does not continue. How can I make it continue if the element is not found?</p>