title: Python selenium presence_of_element_located((By.XPATH, ) need case insensitive
body: <p>I stumbled upon fact then <code>xref</code> maybe in upper case or lower case (even partly) on searched page. How to ensure script finds xref if xref is present on page regardless of case?</p>
  
  <p>Post <a href="https://stackoverflow.com/questions/20228962/python-selenium-xpath-to-find-element-with-case-insensitive-characters">Python: Selenium xpath to find element with case insensitive characters?</a> talks it's not working, but it was 2013. Hope it's changed. How to write proper expression? My current code is:</p>
  
  <pre><code>myLink = WebDriverWait(myDriver, 
  10).until(ExConditions.presence_of_element_located((By.XPATH, 
  '//a[starts-with(@href,"https://www.test.org/portal/")]')))
  </code></pre>