title: xpath does not work with this site, pls verify
body: <p>I using Python with selenium (PhantomJS webdriver) to parse websites and i have problem with it.</p>
  
  <p>I want to get current song from this radio site: <a href="http://www.eskago.pl/radio/eska-warszawa" rel="nofollow">http://www.eskago.pl/radio/eska-warszawa</a>.</p>
  
  <p>xpath:</p>
  
  <pre><code>/html/body/div[3]/div[1]/section[2]/div/div/div[2]/ul/li[2]/a[2]
  </code></pre>
  
  <p>that xpath does not work with python selenium </p>
  
  <p>error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File "parser4.py", line 41, in
    
        p.loop()   File "parser4.py", line 37, in loop
        self.eska(self.url_eskawarszawa)   File "parser4.py", line 27, in eska
        driver.find_element_by_xpath('/html/body/div[3]/div[1]/section[2]/div/div/div[2]/ul/li[2]/a[2]')
    File
    "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py",
    line 230, in find_element_by_xpath
        return self.find_element(by=By.XPATH, value=xpath)   File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py",
    line 662, in find_element
        {'using': by, 'value': value})['value']   File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py",
    line 173, in execute
        self.error_handler.check_response(response)   File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py",
    line 164, in check_response
        raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message:
    u'{"errorMessage":"Unable to find element with xpath
    \'/html/body/div[3]/div[1]/section[2]/div/div/div[2]/ul/li[2]/a[2]\'","request":{"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Length":"148","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:55583","User-Agent":"Python-urllib/2.7"},"httpVersion":"1.1","method":"POST","post":"{\"using\":
    \"xpath\", \"sessionId\":
    \"e2fa7700-1bea-11e4-bd11-83e129ae286e\", \"value\":
    \"/html/body/div[3]/div[1]/section[2]/div/div/div[2]/ul/li[2]/a[2]\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/e2fa7700-1bea-11e4-bd11-83e129ae286e/element"}}'
    ; Screenshot: available via screen</p>
  </blockquote>
  
  <p>Does anyone have idea what is wrong with this?</p>
  
  <h1>--------------------------------------</h1>
  
  <p>Edit:
  thx guys for answers
  I finally find a solution for my problem. 
  xpath was good (but in fact fragile) </p>
  
  <p>I use firefox driver and i saw problem - ad.</p>
  
  <p>I would have to skip them by that and I decided to use another page without this ad:
  <a href="http://www.eskago.pl/radio" rel="nofollow">http://www.eskago.pl/radio</a></p>
  
  <p>and finnaly, thx alecxe - I use this:</p>
  
  <pre><code>driver.find_element_by_xpath('//a[@class="radio-tab-button"]/span/strong').click()
  element = driver.find_element_by_xpath('//p[@class="onAirStreamId_999"]/strong')
  print element.text
  </code></pre>
  
  <p>and work perfectly.</p>