More Related Content
Similar to Using Selenium to Test Native Apps (Wait, you can do that?) (20)
More from Sauce Labs (20)
Using Selenium to Test Native Apps (Wait, you can do that?)
- 8. This talk is about…
the right approach to testing native apps
- 9. This talk is about…
the tools available to test your apps today
- 12. “…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
- 13. js
js Instruments.app
Instruments.app App
- 14. js
js Instruments.app
Instruments.app App
client device
- 22. Script/
Script/ App
Screen Capture
Screen Capture
Framework
Framework
client device
- 27. script
script Client library
Client library App
client device
- 50. test script
test script
App
Appium Server
Appium Server Instruments.app
Instruments.app
client device
- 55. 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()