summaryrefslogtreecommitdiffstats
path: root/g4f/webdriver.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-12 02:15:22 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-12 02:15:22 +0100
commit2a3880ac2f51f2a02ba64fe6bb2547e221580e93 (patch)
tree5d87fd63dc80ef191d947fa79c95b818cd560f28 /g4f/webdriver.py
parentRemove all not working provider (#1679) (diff)
downloadgpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.tar
gpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.tar.gz
gpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.tar.bz2
gpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.tar.lz
gpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.tar.xz
gpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.tar.zst
gpt4free-2a3880ac2f51f2a02ba64fe6bb2547e221580e93.zip
Diffstat (limited to 'g4f/webdriver.py')
-rw-r--r--g4f/webdriver.py2
1 files changed, 1 insertions, 1 deletions
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(