Kyle Medeiros
Kyle Medeiros
I'd recommend checking the button text and taking appropriate action based on that. EX. Add to cart/Out of Stock/Sold Out. It's widely used across all product pages for inventory state...
> > I'd recommend checking the button text and taking appropriate action based on that. > > EX. Add to cart/Out of Stock/Sold Out. > > It's widely used across...
@macdat What is the desired behavior in this scenario? I can take a look.
@macdat Give me a few hours, busy at the momen. There's a better way to lookup the items by redirecting the url to the desired sku, not by using the...
@macdat Here you go. ``` def searchtag(self, search_tag): sku = search_tag product_url = "https://www.bestbuy.com/site/product/{sku1}.p?skuId={sku2}".format(sku1=sku,sku2=sku) print(product_url) self.driver.get(product_url) time.sleep(5) ``` Instead of placing the SKU into the search bar, this redirects the...