0

I'm trying to get some data from one web page. The problem is that when I look on the HTML code using Firefox or any real browser, I can clearly see the "path" to the value I want.

This "path" does not work using Selenium - PhantomJS XPath. The code I'm searching in is commented.

Here you can see Firefox code:

enter image description here

And here - PhantomJS - driver.page_source:

enter image description here

Do you know how to get the 85 in the code?

Milano
  • 18,048
  • 37
  • 153
  • 353
  • I feel like your are retrieving data from DOM while the application is not finished calculation/rendering yet. Have you try webdriver wait yet? See example at: http://stackoverflow.com/questions/7781792/selenium-waitforelement – Buaban Feb 16 '16 at 09:44
  • Does the element that you want to extract appear when you take a screenshot? Perhaps it appears in another part of the markup. – Artjom B. Feb 16 '16 at 09:49
  • @ArtjomB. Probably not since there is no such value in page_source instead of the commented one. – Milano Feb 16 '16 at 10:31

0 Answers0