From 2a3880ac2f51f2a02ba64fe6bb2547e221580e93 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 12 Mar 2024 02:15:22 +0100 Subject: Fix unit test with missing requirements --- g4f/webdriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f') diff --git a/g4f/webdriver.py b/g4f/webdriver.py index 47962d96..21dbc469 100644 --- a/g4f/webdriver.py +++ b/g4f/webdriver.py @@ -10,6 +10,7 @@ try: from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException + from undetected_chromedriver import Chrome, ChromeOptions has_requirements = True except ImportError: from typing import Type as WebDriver, Callable as user_config_dir @@ -44,7 +45,6 @@ try: super().__init__(*args, options=options, **kwargs) has_seleniumwire = True except: - from undetected_chromedriver import Chrome, ChromeOptions has_seleniumwire = False def get_browser( -- cgit v1.2.3