SHARE
TWEET

voter

a guest Aug 21st, 2019 100 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top