/
varon
/
testcase
Обзор
Документация
Войти
/
varon
/
testcase
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
submit/conftest.py
26 строк
645 B
varon
Create: .gitignore, CACHEDIR.TAG, README.md, nodeids, conftest.py, test_autocomplete.py, test_checkboxes.py, test_forgot_password.py, test_inputs.py, test_key_presses.py, test_login.py
15 июн 2026, 14:34
Верифицирован
15 июн 2026, 14:34
b72d575
Код
Авторство
О чём код?
import pytest from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait BASE_URL = "https://practice.expandtesting.com" @pytest.fixture(scope="function") def driver(): options = webdriver.ChromeOptions() options.add_argument("--headless") options.add_argument("--no-sandbox") options.add_argument("--disable-gpu") options.add_argument("--disable-dev-shm-usage") options.page_load_strategy = "eager" d = webdriver.Chrome(options=options) d.implicitly_wait(5) d.maximize_window() yield d d.quit() @pytest.fixture def wait(driver): return WebDriverWait(driver, 10)