mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-06-19 01:16:28 -07:00
Updated Sample and End2End Tests
This commit is contained in:
@@ -4,7 +4,7 @@ from unittest import TestCase
|
||||
from appium import webdriver
|
||||
|
||||
|
||||
class TestE2EApp(TestCase):
|
||||
class TestE2EAndroidApk(TestCase):
|
||||
|
||||
def setUp(self):
|
||||
desired_caps = {
|
||||
|
||||
@@ -18,5 +18,16 @@ class TestE2EChrome(TestCase):
|
||||
def test_open_url(self):
|
||||
self.driver.get('http://google.com')
|
||||
|
||||
# Handle Welcome Home
|
||||
self.driver.switch_to.context('NATIVE_APP')
|
||||
self.driver.find_element_by_id('terms_accept').click()
|
||||
self.driver.find_element_by_id('negative_button').click()
|
||||
|
||||
# Search for Github
|
||||
self.driver.switch_to.context('CHROMIUM')
|
||||
search = self.driver.find_element_by_name('q')
|
||||
search.send_keys('butomo1989 docker-android')
|
||||
search.submit()
|
||||
|
||||
def tearDown(self):
|
||||
self.driver.quit()
|
||||
|
||||
Reference in New Issue
Block a user