Skip to content

Instantly share code, notes, and snippets.

@unbit
Created July 26, 2016 16:39
Show Gist options
  • Save unbit/e33bb03980f0f97e0657788edc1fcf65 to your computer and use it in GitHub Desktop.
Save unbit/e33bb03980f0f97e0657788edc1fcf65 to your computer and use it in GitHub Desktop.
browser = webdriver.Firefox()
browser.get('http://google.com')
print(browser.page_source)
input_search = browser.find_element_by_id('lst-ib')
input_search.send_keys('do a barrel roll', Keys.ENTER)
#input_submit = browser.find_element_by_name('btnG')
#input_submit.click()
time.sleep(10)
browser.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment