public
Created

  • Download Gist
sj_meetup_demo4.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
from selenium import webdriver as w
from selenium.webdriver.common.keys import Keys
d = w.Remote("http://localhost:3001/wd/hub", w.DesiredCapabilities.IPHONE)
d.get("http://www.dreamforce.com/login")
 
pwd = d.find_element_by_css_selector("input[id$=':password']")
 
pwd.send_keys('password')
 
e = d.find_element_by_css_selector("input[id$=':email']")
e.send_keys("lukeis")
# issue #2374
#T-SHIRT
e.send_keys(Keys.RETURN)
#Shoe
e.send_keys(Keys.ENTER)
#Face
e.send_keys(Keys.TAB)
 
pwd.submit()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.