Skip to content

Instantly share code, notes, and snippets.

@LakshyaKhatri
Created April 15, 2019 12:10
Show Gist options
  • Save LakshyaKhatri/260d14deb417a8fa89b943375ee44a0d to your computer and use it in GitHub Desktop.
Save LakshyaKhatri/260d14deb417a8fa89b943375ee44a0d to your computer and use it in GitHub Desktop.
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("""file:////home/aries/Desktop/voteforshreya/h.html""")
assert "Miss" in driver.title
for _ in range(1000):
print(_)
radio_btn = driver.find_element_by_id("poll-answer-963")
if(not radio_btn.is_selected()):
radio_btn.click()
vote_btn = driver.find_element_by_name("vote")
vote_btn.click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment