Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to import HTML code into python with selenium webdriver

from selenium import webdriver
driver = webdriver.Firefox()
driver.get("some url")
if "your text here" in driver.page_source:
    print('Found it!')
else:
    print('Did not find it.')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #import #HTML #code #python #selenium #webdriver
ADD COMMENT
Topic
Name
3+3 =