diff --git a/android/BrowserStackAndroid.py b/android/BrowserStackAndroid.py index 3824fe4..338f7fd 100644 --- a/android/BrowserStackAndroid.py +++ b/android/BrowserStackAndroid.py @@ -9,7 +9,6 @@ desired_caps = { "build": "Python Android", - "realMobile": True, "device": "Samsung Galaxy S7", "app": "bs://" } diff --git a/android/LocalSampleAndroid.py b/android/LocalSampleAndroid.py index 7724d79..b8df4b1 100644 --- a/android/LocalSampleAndroid.py +++ b/android/LocalSampleAndroid.py @@ -11,7 +11,6 @@ desired_caps = { "build": "Python Android Local", "device": "Samsung Galaxy S7", - "realMobile": True, "browserstack.local": True, "app": "bs://" } diff --git a/ios/BrowserStackIOS.py b/ios/BrowserStackIOS.py index 35268f5..9751ace 100644 --- a/ios/BrowserStackIOS.py +++ b/ios/BrowserStackIOS.py @@ -9,9 +9,7 @@ desired_caps = { "build": "Python iOS", - "realMobile": True, "device": "iPhone 7", - "automationName": "XCUITest", "app": "bs://" } @@ -33,7 +31,7 @@ text_elements = driver.find_elements_by_xpath("//XCUIElementTypeStaticText") assert(len(text_elements) > 0) elements = filter( - lambda x: x.__contains__("not registered on WordPress.com"), + lambda x: x and x.__contains__("not registered on WordPress.com"), [x.text for x in text_elements] ) assert(len(elements) > 0) diff --git a/ios/LocalSampleIOS.py b/ios/LocalSampleIOS.py index 02ec68a..9b09ef1 100644 --- a/ios/LocalSampleIOS.py +++ b/ios/LocalSampleIOS.py @@ -10,9 +10,7 @@ desired_caps = { "build": "Python iOS Local", - "realMobile": True, "device": "iPhone 7", - "automationName": "XCUITest", "browserstack.local": True, "app": "bs://" }