Skip to content

Commit 4671abf

Browse files
committed
tweak cases
1 parent f2326ea commit 4671abf

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

tests/macaca-android-sample.test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
desired_caps = {
99
'platformName': 'android',
1010
'app': 'https://npmcdn.com/android-app-bootstrap@latest/android_app_bootstrap/build/outputs/apk/android_app_bootstrap-debug.apk',
11-
'reuse': 3
12-
}
11+
}
1312

1413
server_url = {
1514
'hostname': 'localhost',
@@ -52,7 +51,7 @@ def test_01_login(self):
5251

5352
def test_02_scroll_tableview(self):
5453
self.driver \
55-
.element_by_names('HOME')[0] \
54+
.element_by_name('HOME') \
5655
.click()
5756

5857
self.driver \
@@ -165,7 +164,7 @@ def test_04_webview(self):
165164

166165
def test_05_web(self):
167166
switch_to_native(self.driver) \
168-
.elements_by_name('Baidu')[0] \
167+
.element_by_name('Baidu') \
169168
.click()
170169

171170
time.sleep(3)

tests/macaca-ios-sample.test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88

99
desired_caps = {
1010
'platformName': 'iOS',
11-
'platformVersion': '10.0',
1211
'deviceName': 'iPhone 6s',
1312
'app': 'https://npmcdn.com/ios-app-bootstrap@latest/build/ios-app-bootstrap.zip',
14-
'reuse': 1
1513
}
1614

1715
server_url = {

0 commit comments

Comments
 (0)