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' (Java) from Docs, but most likely applies in other languages: 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. / html> getPageSource just on the back page of some Some states will return to Veronan
getPageSource java Lang.String getPageSource ()
Returns: Source of the current page
Comments
Post a Comment