fairgame icon indicating copy to clipboard operation
fairgame copied to clipboard

don't know what is wrong

Open trothh opened this issue 2 years ago • 3 comments

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...

trothh avatar Jul 20 '22 16:07 trothh

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.

DakkJaniels avatar Jul 20 '22 16:07 DakkJaniels

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

cykaal avatar Oct 16 '22 01:10 cykaal

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?

johnsoe2 avatar Oct 29 '22 22:10 johnsoe2