Skip to content

Instantly share code, notes, and snippets.

@devinmancuso
Created February 19, 2015 23:54
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devinmancuso/9db1eac595800e45dcd3 to your computer and use it in GitHub Desktop.
Save devinmancuso/9db1eac595800e45dcd3 to your computer and use it in GitHub Desktop.
Selenium Chromedriver to automate Survey Monkey
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()
@metracy
Copy link

metracy commented May 9, 2016

hehe chaos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment