fix: 'WebDriver' dependency

This commit is contained in:
2026-04-23 16:05:40 +08:00
parent 42a31c916f
commit 21b69a2c70

View File

@@ -2,12 +2,12 @@ import random
import string
import typing
from selenium.common.exceptions import StaleElementReferenceException, TimeoutException
from selenium.webdriver.chrome.webdriver import WebDriver
from selenium.webdriver.remote.webdriver import WebDriver
from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.remote.webelement import WebElement
from selenium.common.exceptions import StaleElementReferenceException, TimeoutException
driver: WebDriver|None = None
attempts, timeout, interval = int(), float(), float()