mherrmann/helium

[ERROR] WebDriver object has no attribute 'find_elements_by_css_selector'

Opened this issue · 2 comments

Hey everyone, I recently noticed this error after updating some packages. Does anyone know why this is happening?

AttributeError: 'WebDriver' object has no attribute 'find_elements_by_css_selector'

Here's the log below

36 log_me_in bit.py
wait_until(S('.card-body').exists)

473 wait_until __init__.py
_get_api_impl().wait_until_impl(condition_fn, timeout_secs, interval_secs)

357 wait_until_impl __init__.py
wait.until(condition)

81 until wait.py
value = method(self._driver)

352 <lambda> __init__.py
condition_fn if unfilled_args else lambda driver: condition_fn()

518 exists __init__.py
return self._impl.exists()

626 exists __init__.py
next(self.find_all())

614 find_all __init__.py
for occurrence in self.find_all_occurrences():

720 find_all_occurrences __init__.py
for occurrence in self.find_all_in_curr_frame():

791 find_all_in_curr_frame __init__.py
return wrap(self._driver.find_elements_by_css_selector(self.selector))

49 find_elements_by_css_selector selenium_wrappers.py
return self.target.find_elements_by_css_selector(selector) or []

self: <helium._impl.selenium_wrappers.WebDriverWrapper object at 0x114b9b370>
selector: .card-body

AttributeError:
'WebDriver' object has no attribute 'find_elements_by_css_selector'```

https://stackoverflow.com/questions/72854116/selenium-attributeerror-webdriver-object-has-no-attribute-find-element-by-cs

check your selenium version. helium only supports 3.141.0. sounds like you are running selenium v4. In selenium v4, the find_element_by_* methods are deprecated or dont exist. Helium would need a fair amount of re-work to make it useable with selenium v4.

FYI - there's no real interest to maintain this and make it useable on selenium v4.

#73 (comment)