-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.py
More file actions
24 lines (20 loc) · 726 Bytes
/
Copy pathdriver.py
File metadata and controls
24 lines (20 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from appium import webdriver
from testdata import TestConfig
class Driver:
"""
Class contains of a driver settings
"""
def __init__(self):
desired_cap = {
"platformName": "Android",
"deviceName": "Tecno BB2",
"appPackage": "com.google.android.keep",
"appActivity": "com.google.android.apps.keep.ui.activities.BrowseActivity",
"url": "http://127.0.0.1:4723",
"noReset": True,
"launchTimeout": "50000",
"automationName": "UiAutomator2",
"autoDismissAlerts": True
}
self.instance = webdriver.Remote(TestConfig.local_host, desired_cap)
self.instance.implicitly_wait(15)