From c7d988bd610ed9b34ebe2c9ea22f6832fa14a478 Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Fri, 2 Jun 2017 15:30:51 +0200 Subject: [PATCH] Refactored --- example/android/python/msite_simple_chrome.py | 2 +- example/android/python/msite_simple_default_browser.py | 2 +- src/tests/e2e/test_chrome.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example/android/python/msite_simple_chrome.py b/example/android/python/msite_simple_chrome.py index 3ec6508..55b0dd5 100644 --- a/example/android/python/msite_simple_chrome.py +++ b/example/android/python/msite_simple_chrome.py @@ -17,7 +17,7 @@ class MSiteChromeAndroidUITests(unittest.TestCase): 'appActivity': 'com.google.android.apps.chrome.Main', 'browserName': 'chrome' } - self.driver = webdriver.Remote('http://10.161.128.186:4444/wd/hub', desired_caps) + self.driver = webdriver.Remote('http://127.0.0.1:4444/wd/hub', desired_caps) def test_open_url(self): self.driver.get('http://google.com') diff --git a/example/android/python/msite_simple_default_browser.py b/example/android/python/msite_simple_default_browser.py index e6c8343..dc6990d 100644 --- a/example/android/python/msite_simple_default_browser.py +++ b/example/android/python/msite_simple_default_browser.py @@ -17,7 +17,7 @@ class MSiteDefaultBrowserAndroidUITests(unittest.TestCase): 'appActivity': 'com.android.browser.BrowserActivity', 'browserName': 'browser' } - self.driver = webdriver.Remote('http://10.161.128.186:4444/wd/hub', desired_caps) + self.driver = webdriver.Remote('http://127.0.0.1:4444/wd/hub', desired_caps) def test_open_url(self): self.driver.get('http://google.com') diff --git a/src/tests/e2e/test_chrome.py b/src/tests/e2e/test_chrome.py index 94dfcf3..bf85e1e 100644 --- a/src/tests/e2e/test_chrome.py +++ b/src/tests/e2e/test_chrome.py @@ -11,7 +11,8 @@ class TestE2EChrome(TestCase): 'platformName': 'Android', 'deviceName': 'Android Emulator', 'appPackage': 'com.android.chrome', - 'appActivity': 'com.google.android.apps.chrome.Main' + 'appActivity': 'com.google.android.apps.chrome.Main', + 'browserName': 'chrome' } self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)