title: Looping through xpath variables
body: <p>How can I increment the Xpath variable value in a loop in python for a selenium webdriver script ?</p>
  
  <pre><code>search_result1 = sel.find_element_by_xpath("//a[not((//div[contains(@class,'s')]//div[contains(@class,'kv')]//cite)[1])]|((//div[contains(@class,'s')]//div[contains(@class,'kv')]//cite)[1])").text
  
  search_result2 = sel.find_element_by_xpath("//a[not((//div[contains(@class,'s')]//div[contains(@class,'kv')]//cite)[2])]|((//div[contains(@class,'s')]//div[contains(@class,'kv')]//cite)[2])").text
  
  search_result3 = sel.find_element_by_xpath("//a[not((//div[contains(@class,'s')]//div[contains(@class,'kv')]//cite)[3])]|((//div[contains(@class,'s')]//div[contains(@class,'kv')]//cite)[3])").text
  </code></pre>