title: how to use a variable in selenium webdriver find element by xpath?
body: <p>so I have a variable named folder which contains a string that I randomly generate. I want to use xpath to find this folder by name, and I am not sure how to put this into action</p>
  
  <pre><code>driver.find_element_by_xpath('//div[text()="variable"]')
  </code></pre>
  
  <p>where variable contains the randomized text. With sql it would be like this (select * from table where value =(?)), [variable] ...or something similar</p>