diff --git a/stores/amazon.py b/stores/amazon.py index 1047379a..7c8532c3 100644 --- a/stores/amazon.py +++ b/stores/amazon.py @@ -556,6 +556,13 @@ def check_stock(self, asin, reserve_min, reserve_max, retry=0): if open_offers_link: log.debug("Attempting to click the open offers link...") + try: + cookie_button = self.driver.find_element_by_xpath("//input[@id='sp-cc-accept']") + except: + cookie_button = None + if cookie_button: + cookie_button.click() + log.info("Cookies accepted!") try: open_offers_link.click() except sel_exceptions.WebDriverException as e: