python selenium get html content
element.get_attribute('innerHTML')
python selenium get html content
element.get_attribute('innerHTML')
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()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us