我正在尝试使用pythonselenium登录instagram。但我必须接受这些饼干才能继续。 ? init__(self, username, pw): self.driver.get('https://www.instagram.com/') #this is the code that im trying to use, so to click
因此,我正在测试我在Amazon网站上使用Python和Selenium创建的机器人。当机器人在亚马逊产品页面上打开浏览器时,在我的窗口底部会弹出一个"Select Your Cookies Preference“的滑块。我可以使用我的Selenium机器人点击"AcceptCookies“按钮,然后点击"Add to Cart”按钮,我编写的代码没有任何问题--但我的问题是,我能绕过
我试图在主页上“接受cookie”,但我的代码不起作用。我尝试获取新的窗口句柄,然后识别框架和接受按钮的后续Xpath,但它始终无法工作。org.openqa.selenium.chrome.*;import org.openqa.selenium.support.ui.WebDriverWait();
By cookies</e