我的期望是一些东西会在验证后自动添加到cookeies数组中,但事实并非如此。driver = webdriver.Chrome(chromedriver)driver.get(whatsapp_urlare doing the manual QR code verification here
print(driver.get_cookies()
我一直在使用selenium开发一个WhatsApp机器人,但是每次我运行代码时,我都必须重新扫描Qr代码才能输入它。我在youtube视频中找到了使用选项的解决方案,但它不起作用,并返回一个错误,即selenium.common.exceptions.InvalidArgumentException: Messagein use, please specify a unique value for --user-data-dir a