Guest User

voter

a guest
Aug 21st, 2019
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from selenium import webdriver
  2. from selenium.webdriver.common.by import By
  3. from selenium.webdriver.support.ui import WebDriverWait
  4. from selenium.webdriver.support import expected_conditions as EC
  5.  
  6. browser = webdriver.Chrome()
  7. while(1):
  8.     browser.get("https://www.quiz-maker.com/poll2449284x20094Be0-69")
  9.     checkboxes = browser.find_elements_by_class_name("qp_i")
  10.  
  11.     for checkbox in checkboxes:
  12.         if checkbox.get_attribute('value') == '10':
  13.             checkbox.click()
  14.     browser.find_element_by_name("qp_b2449284").click()
RAW Paste Data