-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconftest.py
More file actions
24 lines (17 loc) · 755 Bytes
/
conftest.py
File metadata and controls
24 lines (17 loc) · 755 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
import unittest
from appium import webdriver
class Base(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Remote(command_executor="http://localhost:4723/wd/hub",
desired_capabilities=
{
"deviceName": "04RAYV406P ",
"version": "12.0",
"platformName": "Android",
"automationName": "UIAutomator2",
})
self.driver.implicitly_wait(20)
def teardown(self):
self.driver.quit()
if __name__ == '__main__':
unittest.main()