1) Have python script run to launch and manipulate a web page in chrome
2) Have the python script ask me for input at some point in the execution by sending me an iMessage (Example: "What is the city you're in?")
3) Have the script use my iMessage response as the input to continue the execution (Example: "Baltimore, MD")
I have this working using the raw_input() function in Python 2.7 but would prefer to use iMessage plugin so I don't have to physically be in front of my console when it runs.
If it helps, here's how I'm using raw_input():
- Code: Select all
code = raw_input("What is the secret password: ")
rsa_box = driver.find_element_by_id("input_secret")
rsa_box.send_keys(code)
submit_ = driver.find_element_by_id("btn_verify")
submit_.click()
time.sleep(10)
submit_ = driver.find_element_by_id("btn_remember_device_continue")
submit_.click()
time.sleep(20)