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

don't know what is wrong #862

Open
trothh opened this issue Jul 20, 2022 · 3 comments
Open

don't know what is wrong #862

trothh opened this issue Jul 20, 2022 · 3 comments

Comments

@trothh
Copy link

trothh commented Jul 20, 2022

Describe the bug
2022-07-20 18:53:13,069|0.6.9|WARNING|--Testing Mode. NO Purchases will be made.
2022-07-20 18:53:13,069|0.6.9|INFO|==================================================
2022-07-20 18:53:13,069|0.6.9|INFO|Waiting for home page.
2022-07-20 18:53:13,080|0.6.9|ERROR|Traceback (most recent call last):
File "C:\Users*\Documents\GitHub\fairgame\cli\cli.py", line 66, in decorator
func(args, kwargs)
File "C:\Users*
\Documents\GitHub\fairgame\cli\cli.py", line 257, in amazon
amzn_obj.run(delay=delay, test=test)
File "C:\Users*
\Documents\GitHub\fairgame\stores\amazon.py", line 231, in run
self.get_page(url=AMAZON_URLS["BASE_URL"])
File "C:\Users****\Documents\GitHub\fairgame\stores\amazon.py", line 1674, in get_page
check_cart_element = self.driver.find_element_by_xpath(
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'

2022-07-20 18:53:13,080|0.6.9|INFO|Cleaning up after web driver...

@DakkJaniels
Copy link
Collaborator

find_element_by_xpath and find_element_by_id was removed from selenium. The code needs to be updated (by someone) to stop using it.

@cykaal
Copy link

cykaal commented Oct 16, 2022

Specify the version of selenium in pipfile e.g. 4.2.0 (must be previous to 4.3.0) solves this problem.

@johnsoe2
Copy link

I still get this exact error when running Selenium 4.2.0, Chromedriver_PY 102.0.5005.61, Chrome 102.0.5005.63, Python 3.8.15. Any idea what I might have missed?

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

4 participants