Create a gist now

Instantly share code, notes, and snippets.

#load selenium library
from selenium import webdriver as w
# connect to the running iWebDriver instance
d = w.Remote("http://localhost:3001/wd/hub", w.DesiredCapabilities.IPHONE)
#cause an alert
d.execute_script("setTimeout(function(){alert('hi San Jose!');}, 100)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment