You've already forked docker-android
mirror of
https://github.com/izzy2lost/docker-android.git
synced 2026-03-10 11:37:45 -07:00
Using google_apis
This commit is contained in:
26
example/android/python/msite_simple_chrome.py
Normal file
26
example/android/python/msite_simple_chrome.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import unittest
|
||||
|
||||
from appium import webdriver
|
||||
|
||||
|
||||
class MSiteChromeAndroidUITests(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
desired_caps = {
|
||||
'platformName': 'Android',
|
||||
'deviceName': 'Android Emulator',
|
||||
'appPackage': 'com.android.chrome',
|
||||
'appActivity': 'com.google.android.apps.chrome.Main',
|
||||
'avd': 'samsung_galaxy_s6_5.0.1'
|
||||
}
|
||||
self.driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
|
||||
|
||||
def test_open_url(self):
|
||||
self.driver.get('http://targeturl.com')
|
||||
|
||||
def tearDown(self):
|
||||
self.driver.quit()
|
||||
|
||||
if __name__ == '__main__':
|
||||
suite = unittest.TestLoader().loadTestsFromTestCase(MSiteChromeAndroidUITests)
|
||||
unittest.TextTestRunner(verbosity=2).run(suite)
|
||||
Reference in New Issue
Block a user