title: SET ERROR IGNORE Python selenium
body: <p>I want set error ignore on my script if he don't find page instagram or xpath and continue script.</p>
  
  <p>This is script: </p>
  
  <p>import time
  from time import sleep
  from selenium import webdriver
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.common.keys import Keys</p>
  
  <p>browser = webdriver.Chrome('./chromedriver')
  "GO INSTAGRAM PAGE FOR LOGIN"
  browser.get('<a href="https://www.instagram.com/accounts/login/?hl=it" rel="nofollow noreferrer">https://www.instagram.com/accounts/login/?hl=it</a>')</p>
  
  <p>sleep(2)
  "ID AND PASSWORD"</p>
  
  <p>elem = browser.find_element_by_name("username").send_keys('id')</p>
  
  <p>elem = browser.find_element_by_name("password").send_keys('pass')</p>
  
  <p>"CLICK BUTTON AND OPEN INSTAGRAM"</p>
  
  <p>sleep(5)</p>
  
  <p>good_elem = browser.find_element_by_xpath('//*[@id="react-root"]/section/main/div/article/div/div[1]/div/form/span/button').click()</p>
  
  <p>sleep(5)</p>
  
  <p>browser.get("<a href="https://www.instagram.com" rel="nofollow noreferrer">https://www.instagram.com</a>")</p>
  
  <p>"GO TO PAGE FOR FOLLOW"</p>
  
  <p>browser.get("<a href="https://www.instagram.com/test/" rel="nofollow noreferrer">https://www.instagram.com/test/</a>")</p>
  
  <p>time.sleep(5)</p>
  
  <p>follow = browser.find_element_by_xpath('//*[@id="react-root"]/section/main/div/header/section/div[1]/button').click()</p>