From 6126b3f657dc1e80d544dadc6616867a7e2929ab Mon Sep 17 00:00:00 2001 From: Khaled Youssef <110984055+khaledyoussef24@users.noreply.github.com> Date: Sun, 1 Dec 2024 07:31:39 +0200 Subject: [PATCH] Delete packages/playground/tests/frontend_selenium/tests/conftest.py --- .../tests/frontend_selenium/tests/conftest.py | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 packages/playground/tests/frontend_selenium/tests/conftest.py diff --git a/packages/playground/tests/frontend_selenium/tests/conftest.py b/packages/playground/tests/frontend_selenium/tests/conftest.py deleted file mode 100644 index 3aae3f0e30..0000000000 --- a/packages/playground/tests/frontend_selenium/tests/conftest.py +++ /dev/null @@ -1,34 +0,0 @@ -import pytest -from selenium import webdriver -from webdriver_manager.chrome import ChromeDriverManager -from selenium.webdriver.chrome.service import Service as ChromeService -from pyvirtualdisplay import Display - -""" -This module contains shared browser fixtures. -""" - -@pytest.fixture -def browser(): - - # Virtual display for the browser, allowing it to run in headless mode - display = Display(visible=0, size=(1920, 1080)) - display.start() - - # Initialize the ChromeDriver instance with options - options = webdriver.ChromeOptions() - #options.add_extension('extension.crx') # For Adding Extension - driver = webdriver.Chrome(options=options) - # driver = webdriver.Chrome(options=options, service=ChromeService(ChromeDriverManager().install())) - driver.set_window_size(1920, 1080) - - # Make its calls wait up to 60 seconds for elements to appear - driver.implicitly_wait(60) - - # Return the WebDriver instance for the setup - yield driver - - # Quit the WebDriver instance for the cleanup - driver.quit() - # Ending virtual display for the browser - display.stop() \ No newline at end of file