Refactored

This commit is contained in:
butomo1989 2017-06-02 15:30:51 +02:00
parent 47e968927a
commit c7d988bd61
3 changed files with 4 additions and 3 deletions

View file

@ -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')

View file

@ -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')

View file

@ -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)