-
-
Save zoghal/b792f0331f81bee8bb87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| You'll need to install npm, nodejs and phantomjs | |
| $ apt-get install nodejs nodejs-dev npm phantomjs | |
| $ pip install selenium-python | |
| ''' | |
| from selenium import webdriver | |
| browser = webdriver.PhantomJS() | |
| browser.get('http://thewebsite.com/') | |
| browser.find_element_by_css_selector("input[name='Agree'][value=Yes']").click() | |
| browser.save_screenshot('screenshot.png') | |
| # etc,etc | |
| browser.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment