Interact with Javascript in Pythonista
-
Does anyone know how to interact with Javascript in Pythonista? I use PhantomJS and Selenium on my desktop, but cannot for the life of me figure out how to get it working with Mechanize. I really just need to click accept on a modal and can't figure out how to do it without PhantomJS or Selenium. I tried setting the cookie to "accepted" and some other things, nothing is working. Any help is appreciated!
-
use a ui.WebView instead of mechanize. This also lets you evaluate arbitrary js.
-
This worked great. Thank you!