title: Python Selenium find element XPath doesn't work
body: <p>I try to find refresing elements (time minute) on the webpage. My code worked only for simple text earlier. Now I use <em>Ctrl+Shift+I</em> and point out my element and <em>"Copy Xpath"</em>. </p>
  
  <p>Also, I have Chrome extension <em>"XPath helper"</em> and tried to do that with it one. There is more longer XPath, than in my code below. And it doesn't work too.</p>
  
  <blockquote>
    <p>Error: NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id....</p>
  </blockquote>
  
  <p>And, I also tried to use find by class, by tag, by <em>CSS</em> selector.. It only worked by tag and no perfect, on different page. </p>
  
  <p>And I don't even say about print it, sometimes <code>find_element(By.XPATH,'//*[...).text</code> work, sometimes not.</p>
  
  <p>I don't understand, why it work on one page and not on second.. I want to work with find elements by <em>XPath</em> in flash later.</p>
  
  <p><strong>UPDATE</strong> Now I retrying code and it work! But still doesn't work on the next webpage.. why it is so changeable? XPath change, when page reload or what? What is the simplest way to get text(refresing) info from flash, opened in chrome browser?</p>
  
  <pre><code>import selenium
  from selenium import webdriver
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.common.by import By
  options = webdriver.ChromeOptions()
  options.add_argument('headless')
  driver = webdriver.Chrome(r"C:\Users\vishniakov\Desktop\python bj\driver\chromedriver.exe",chrome_options=options)
  driver.get("https://www.betfair.com/sport/football/event?eventId=28935432")
  print(driver.title)
  elem =driver.find_element(By.XPATH,'//*[@id="yui_3_5_0_1_1538670363144_2571"]').text
  print(elem)
  </code></pre>