You will need to get get the document via javascript
you can use seleniums execute_script
function
from time import sleep # this should go at the top of the file
sleep(5)
html = driver.execute_script("return document.getElementsByTagName('html')[0].innerHTML")
print html
That will get everything inside of the <html>
tag
More Related Contents:
- Can a website detect when you are using Selenium with chromedriver?
- WebDriver click() vs JavaScript click()
- Running javascript in Selenium using Python
- Getting the return value of Javascript code in Selenium
- ElementClickInterceptedException: Message: element click intercepted Element is not clickable error clicking a radio button using Selenium and Python
- Scrolling to top of the page in Python using Selenium
- Python: Unable to download with selenium in webpage
- Understanding execute async script in Selenium
- Accessing Shadow DOM tree with Selenium
- How do I wait for a JavaScript __doPostBack call through Selenium and WebDriver
- Accessing elements in the shadow DOM
- How to disable a “Reload site? Changes you made may not be saved” popup for (python) selenium tests in chrome?
- An error has occured in ‘site url’: Uncaught TypeError: Cannot read property ‘getColomnSet’ of undefined with Selenium and Python
- How to send a date directly as text to a calendar control with readonly attribute using Selenium through Python?
- How to download an image with Python 3/Selenium if the URL begins with “blob:”?
- Disable images in Selenium Python
- Selenium: How to Inject/execute a Javascript in to a Page before loading/executing any other scripts of the page?
- Get page generated with Javascript in Python
- How to select option in drop down protractorjs e2e tests
- Headless Browser for Python (Javascript support REQUIRED!) [closed]
- Executing Javascript from Python
- Update and render a value from Flask periodically
- Uncaught DOMException: Blocked a frame with origin “http://localhost:8080” from accessing a cross-origin frame while listing the iframes in page
- Selenium Datepicker using JavascriptExecutor
- How do I call a Javascript function from Python?
- Javascript – No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- Click on a javascript link within python?
- Can I scrape the raw data from highcharts.js?
- Hide several lines using Checkboxes and CustomJS in Python Bokeh
- Python Flask Cors Issue