-
Notifications
You must be signed in to change notification settings - Fork 1
/
desired_capabilities.py
32 lines (28 loc) · 1.34 KB
/
desired_capabilities.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
def get_desired_capabilities(devices_name, app_package, app_activity, adb_port='5037', remote_adb_host='127.0.0.1'):
desired_caps = {'platformName': 'Android',
'deviceName': devices_name,
'appPackage': app_package,
'appActivity': app_activity,
'udid': devices_name,
'unicodeKeyboard': True,
'resetKeyboard': True,
'newCommandTimeout': 7200,
'ignoreUnimportantViews': True,
'noReset': True,
'adbPort': adb_port,
'remoteAdbHost': remote_adb_host}
return desired_caps
def get_desired_capabilities_install_app(devices_name, app, adb_port='5037', remote_adb_host='127.0.0.1'):
desired_caps = {'platformName': 'Android',
'deviceName': devices_name,
'app': app,
'udid': devices_name,
'unicodeKeyboard': True,
'resetKeyboard': True,
'newCommandTimeout': 7200,
'ignoreUnimportantViews': True,
'noReset': True,
'adbPort': adb_port,
'remoteAdbHost': remote_adb_host
}
return desired_caps