- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconftest.py
More file actions
Latest commit
15 lines (13 loc) · 496 Bytes
/
Copy pathconftest.py
File metadata and controls
15 lines (13 loc) · 496 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fromseleniumimportwebdriver
fromselenium.webdriver.chrome.serviceimportService
fromwebdriver_manager.chromeimportChromeDriverManager
fromselenium.webdriver.chrome.optionsimportOptions
importpytest
@pytest.fixture(autouse=True, scope='class')
defsetup(request):
options=Options()
options.add_argument('--headless')
driver=webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
request.cls.driver=driver
yield
driver.quit()