mirror of
https://github.com/budtmo/docker-android.git
synced 2026-07-28 06:32:17 +00:00
Updated Sample and End2End Tests
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user