/selenium_googleform

Automatically filling multiple responses into a Google Form with Selenium and Python

Primary LanguagePython

Selenium Google Form

Step 1: Install Google Chrome Webdriver

Step 2: Install Selenium

pip install selenium

Step 3: Configuring Selenium Webdriver

from selenium import webdriver

option = webdriver.ChromeOptions()
option.add_argument('-incognito')
option.headless = True
browser = webdriver.Chrome(executable_path='../resources/chromedriver', options=option)

Step 4: Finding the elements in the Webpage

Step 5: Interacting with the elements

  • Use find_elements_by_class_name() or find_element_by_id() method to select elements
  • To fill input form, use send_keys() method
  • To select radio button or click button, use click() method