I will try again.
The code below I copied from another site and the user say it works (shows a screenshot).Original code
I tested the code: No error, but no fil
from selenium import webdriver driver = webdriver.Chrome(executable_path=r"C:\Program Files (x86)\Selenium\chromedriver.exe") driver.get("http://www.example.com") with open('page.html', 'w+') as f: f.write(driver.page_source) f.close()
Must work