Python Selenium: How to let human interaction in a automated script? -


i working on script shows captcha , few other stuff in pop window. writing script firefox. possible feed values , on hitting submit button script resume operations? guess, kind of infinite loop?

you wait submit button clicked user:

from selenium import webdriver selenium.webdriver.support.ui import webdriverwait selenium.webdriver.support import expected_conditions ec  # load page driver.get("https://www.google.com/recaptcha/api2/demo")  # submit button bt_submit = driver.find_element_by_css_selector("[type=submit]")  # wait user click submit button (check every 1s 1000s timeout) webdriverwait(driver, timeout=1000, poll_frequency=1) \   .until(ec.staleness_of(bt_submit))  print "submitted" 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -