Skip to content
conftest.py 367 B
Newer Older
admin's avatar
admin committed
import pytest
from selenium import webdriver

@pytest.fixture(scope='function')
def driver():
    options = webdriver.ChromeOptions()
admin's avatar
admin committed
    options.add_argument('--disable-dev-shm-usage')
    driver = webdriver.Remote(
    command_executor='http://192.168.1.103:4444/wd/hub', options=options)
admin's avatar
admin committed
    driver.maximize_window()
    yield driver
    driver.quit()