kaliiiiiiiiii / Selenium-Profiles

undetected Selenium using chromedriver and emulation / device profiles
Other
272 stars 29 forks source link

Does not work with implicit waits or WebDriverWait #118

Closed ChrisHelmsC closed 8 months ago

ChrisHelmsC commented 8 months ago

Describe the bug The driver will not work as an input to WebDriverWait, which does not wait but instantly errors out. Additionally, driver.implicitly_wait(10) does not appear to exist. Time.sleep() is required to wait for page loads.

To Reproduce

def configureDriver():
    profile = profiles.Windows() # or .Android
    options = ChromeOptions()
    options.add_argument("--headless=new")
    driver = Chrome(profile, options=options, driverless_options=True)

    # Doesn't exist
    driver.implicitly_wait(10)

    driver.get('https://example.com')

    # Errors instantly
    WebDriverWait(driver, 100).until(EC.visibility_of_element_located(
        (By.ID, 'login-username')))

Expected behavior or error-message Driver should support use of WebDriverWait for best practices.

Environment (please complete the following information):

kaliiiiiiiiii commented 8 months ago

As stated in the readme, driverless is experimental. Driverless does not aim to support full compability anymore.