I'm looking at a web page and making a yes/no decision. I'm trying to create a prompt that will allow me to pass the "yes" / "no" to a python variable via Splinter.
1.) Page loads
2.) Execute something like
data = browser.execute_script("window.prompt()")
if data == 'yes':
print('the value is good')
print('the value is bad')
Is there a good way to go about doing this?
No. Use Python's
raw_input if using Python 2), or get that value as a command line argument.