title: Dynamic ID - selenium, python. How to match start with and contains?
body: <p>I've got <code>id="phone_123456_option"</code>. There's no fully static part in code to find the element in other way. I can't also use only start-with, for sure I need also refer to option. So I guess I need to match start-with and contains (or ends-with?) in one line of code using xpath. Does anybody know how to do it properly?</p>
  
  <p>In python and selenium now I can use: </p>
  
  <pre><code>driver.find_element_by_id("phone_123456_option").click()
  </code></pre>
  
  <p>I need to create a python, not xml, xpath:
  //*[@id="phone_123456_option"] - How to properly remove dynamic number and refer to phone and option?</p>