How can I handle an alert with GhostDriver via Python?
问题 Problem: The GhostDriver API does not yet support alert handling. There is an acceptable workaround for the time being, which is to inject your own javascript into the page that will handle the alert and store it's text for you. I'm having trouble using this workaround via the python webdriver bindings. It might be related to my novice level understanding of javascript. Here is an example of the workaround I am trying to utilize: https://github.com/detro/ghostdriver/issues/20#issuecomment