Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Future of Selenium for mobile web and nativ...

Avatar for Jason Carr Jason Carr
November 16, 2012

The Future of Selenium for mobile web and native apps

Avatar for Jason Carr

Jason Carr

November 16, 2012
Tweet

More Decks by Jason Carr

Other Decks in Technology

Transcript

  1. iWebDriver.app from selenium import webdriver hub = ‘http://localhost:3001/wd/hub’ caps =

    webdriver.DesiredCapabilities.IPHONE driver = webdriver.Remote(hub, caps) from selenium import webdriver hub = ‘http://localhost:3001/wd/hub’ caps = webdriver.DesiredCapabilities.IPHONE driver = webdriver.Remote(hub, caps)
  2. “…a bit like being dropped off in a field somewhere

    with no map, tools or supplies and being told you need to build a house.” -Alex Vollmer
  3. from selenium import webdriver command_url = “http://localhost:4723/wd/hub” iphone = webdriver.DesiredCapabilities.IPHONE

    driver = webdriver.Remote(command_url, iphone) fields = driver.find_elements_by_tag_name('textField’) fields[0].send_keys(3) fields[1].send_keys(4) buttons = driver.find_elements_by_tag_name('button’) buttons[0].click()
  4. Resources Appium Github Repo: http://goo.gl/4E5F0 Dan Cuellar’s talk on Appium:

    http://goo.gl/qgLha François Reynaud on ios-driver: http://goo.gl/pzn75 Simon Stewart’s blog on mobile testing: http://goo.gl/8wl8j