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