Skip to content

Commit 594c9f6

Browse files
author
Tejas Shah
committed
update condition | remove realMobile, automationName cap
1 parent 88cf052 commit 594c9f6

4 files changed

Lines changed: 1 addition & 7 deletions

File tree

android/BrowserStackAndroid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
desired_caps = {
1111
"build": "Python Android",
12-
"realMobile": True,
1312
"device": "Samsung Galaxy S7",
1413
"app": "bs://<hashed app-id>"
1514
}

android/LocalSampleAndroid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
desired_caps = {
1212
"build": "Python Android Local",
1313
"device": "Samsung Galaxy S7",
14-
"realMobile": True,
1514
"browserstack.local": True,
1615
"app": "bs://<hashed app-id>"
1716
}

ios/BrowserStackIOS.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
desired_caps = {
1111
"build": "Python iOS",
12-
"realMobile": True,
1312
"device": "iPhone 7",
14-
"automationName": "XCUITest",
1513
"app": "bs://<hashed app-id>"
1614
}
1715

@@ -33,7 +31,7 @@
3331
text_elements = driver.find_elements_by_xpath("//XCUIElementTypeStaticText")
3432
assert(len(text_elements) > 0)
3533
elements = filter(
36-
lambda x: x.__contains__("not registered on WordPress.com"),
34+
lambda x: x and x.__contains__("not registered on WordPress.com"),
3735
[x.text for x in text_elements]
3836
)
3937
assert(len(elements) > 0)

ios/LocalSampleIOS.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
desired_caps = {
1212
"build": "Python iOS Local",
13-
"realMobile": True,
1413
"device": "iPhone 7",
15-
"automationName": "XCUITest",
1614
"browserstack.local": True,
1715
"app": "bs://<hashed app-id>"
1816
}

0 commit comments

Comments
 (0)