更新时间:2021-11-19 05:42:05
我使用以下方法解决了
driver.execute_script("window.localStorage;")
这是一个简短的答案.有关更详细的信息,请参见Florent B.的答案.
this is a quick and short answer. See Florent B.'s answer for a more detailed one.
如何在python中使用phantomjs和selenium webdriver设置窗口大小
如何使用 Selenium 和 Python 绑定禁用日志记录
如何使用Selenium WebDriver获取HTTP响应代码
如何使用Selenium Python在html的span数据绑定部分中获取文本?
使用python和selenium连接到phantomJs Webdriver时出现问题
如何使用Selenium Webdriver获取“当前窗口大小"?
如何在 Python 中使用 Selenium WebDriver 获取文本
如何使用Webdriver Selenium获取“样式”的值元件
如何使用 Selenium WebDriver 获取 HTTP 响应代码
如何使用Python、JavaScript或Robot Framework和Selenium使用部分标题文本导航到新浏览器窗口