get page source code selenium python

Solutions on MaxInterview for get page source code selenium python by the best coders in the world

showing results for - "get page source code selenium python"
Cathalina
14 Aug 2016
1from selenium import webdriver
2import time
3
4options = webdriver.ChromeOptions()
5options.add_argument('--ignore-certificate-errors')
6options.add_argument("--test-type")
7options.binary_location = "/usr/bin/chromium"
8driver = webdriver.Chrome(chrome_options=options)
9driver.get('https://python.org')
10
11html = driver.page_source
12print(html)