Created
February 19, 2015 23:54
-
-
Save devinmancuso/9db1eac595800e45dcd3 to your computer and use it in GitHub Desktop.
Selenium Chromedriver to automate Survey Monkey
This file contains 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
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = webdriver.ChromeOptions() | |
chrome_options.add_argument("-incognito") | |
driver = webdriver.Chrome(executable_path='/Library/Python/2.7/site-packages/selenium/webdriver/chrome/chromedriver', chrome_options=chrome_options) | |
driver.get('https://www.surveymonkey.com/s/<surveyid>') | |
time.sleep(2) | |
nxt_btn = driver.find_element_by_name('NextButton') | |
nxt_btn.click() | |
time.sleep(2) | |
vote_check = driver.find_element_by_id('linput_740142485_10_8428776065_0') | |
vote_check.click() | |
time.sleep(2) | |
nxt_btn = driver.find_element_by_name('NextButton') | |
nxt_btn.click() | |
driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hehe chaos