Selenium (Python) - Get webdriver's page_source after page is fully loaded -


I want to get data from a dynamic page (many of them). I can access the page using Selenium in Pennathan. However, driver.page_source is incomplete. Even if I try the driver. Implicitly_wait (100) Nothing changes

I also tried: selenium.webridr.com from Selenium Import WebDrive. By Import: Selenium.Vebriador. Support WebDrivewight is available from UI since # 2.4. Selenium.webitter From 0,26.0, import the desired_andition as available as EC # available. WebDriverWait (driver, 10). (Unless.

While I'm waiting / waiting for something, more than enough to load the page, I do not see any effect on the driver. Page_source after waiting.

Is there a solution?

Thanks.

If you really need it Its solution is to use something else to grab the page source. Webdrivers' getPageSource just on the back page of some Some states will return to Veronan

(Java) from Docs, but most likely applies in other languages:

  getPageSource java Lang.String getPageSource ()   

Get the source of the last-loaded page if the page has been modified after loading - (for example, by javascript) there is no guarantee that the returned The text revised page uses the specific driver's documentation, to determine For that reflects the text sent by the current situation or web server what returned text current page, the experiment. Returned page source is a representation of the underlying DOM: Do not expect it to be formatted or participated in the response sent from the web server.

  Returns: Source of the current page    

/ html>

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -