Answers for "get html code from selenium object in python"

0

how to get html code in selenium python

#_*_coding: utf-8_*_
from selenium import webdriver
import time
# start web 
browserbrowser=webdriver.Firefox()
# get source 
codebrowser.get("https://en.wikipedia.org")
html = browser.page_source
time.sleep(2)
print(html)
# close web browser
browser.close()
Posted by: Guest on March-14-2021

Code answers related to "get html code from selenium object in python"

Browse Popular Code Answers by Language