Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
REMitchell
GitHub Repository: REMitchell/python-crawling
Path: blob/master/6-Selenium/1-seleniumBasic.py
164 views
1
from selenium import webdriver
2
import time
3
4
#driver = webdriver.PhantomJS(executable_path='/Users/ryan/Documents/git/python-crawling/6-Selenium/phantomjs/bin/phantomjs')
5
driver = webdriver.PhantomJS()
6
driver.get("http://pythonscraping.com/pages/javascript/ajaxDemo.html")
7
time.sleep(3)
8
print(driver.find_element_by_id("content").text)
9
10