Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] WebDriver object has no attribute 'find_elements_by_css_selector' #87

Open
MrBeardedGuy opened this issue Jul 10, 2022 · 2 comments

Comments

@MrBeardedGuy
Copy link

MrBeardedGuy commented Jul 10, 2022

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'```

@jonathan-krpt
Copy link

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.

@jonathan-krpt
Copy link

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

#73 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants