Updated Sample and End2End Tests

This commit is contained in:
butomo1989
2017-06-02 14:49:55 +02:00
parent dcf196ec4a
commit 47e968927a
5 changed files with 40 additions and 8 deletions
@@ -1,5 +1,7 @@
import unittest
from time import sleep
from appium import webdriver
@@ -15,10 +17,15 @@ class MSiteDefaultBrowserAndroidUITests(unittest.TestCase):
'appActivity': 'com.android.browser.BrowserActivity',
'browserName': 'browser'
}
self.driver = webdriver.Remote('http://127.0.0.1:4444/wd/hub', desired_caps)
self.driver = webdriver.Remote('http://10.161.128.186:4444/wd/hub', desired_caps)
def test_open_url(self):
self.driver.get('http://targeturl.com')
self.driver.get('http://google.com')
search = self.driver.find_element_by_name('q')
search.send_keys('butomo1989 docker-android')
search.submit()
sleep(2)
def tearDown(self):
self.driver.quit()