nickconnors / RTX-3070-Best-Buy-Bot

Selenium WebDriver Python script to auto checkout RTX 3070 graphics card when in stock
136 stars 57 forks source link

error and not purchasing #23

Open dafoneman opened 3 years ago

dafoneman commented 3 years ago

hi there, i loaded the bot input a link with a xbox series s instock. it loads the page but then nothing happends. below is the log please help.

DevTools listening on ws://127.0.0.1:51226/devtools/browser/2508ad2b-5414-4e74-9f66-952feff1515c [3504:14128:0421/132824.848:ERROR:device_event_log_impl.cc(214)] [13:28:24.848] Bluetooth: bluetooth_adapter_winrt.cc:1072 Getting Default Adapter failed. Traceback (most recent call last): File "C:\Users\b_lau\OneDrive\Desktop\bestbuy bots\TEST.py", line 24, in atcBtn = WebDriverWait(driver, 10).until( File "C:\Python39\lib\site-packages\selenium\webdriver\support\wait.py", line 71, in until value = method(self._driver) File "C:\Python39\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 297, in call element = visibility_of_element_located(self.locator)(driver) File "C:\Python39\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 128, in call return _element_if_visible(_find_element(driver, self.locator)) File "C:\Python39\lib\site-packages\selenium\webdriver\support\expected_conditions.py", line 148, in _element_if_visible return element if element.is_displayed() == visibility else False AttributeError: 'NoneType' object has no attribute 'is_displayed'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\b_lau\OneDrive\Desktop\bestbuy bots\TEST.py", line 28, in driver.refresh() File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 831, in refresh self.execute(Command.REFRESH) File "C:\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed from unknown error: web view not found (Session info: chrome=90.0.4430.72)