且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Python和Selenium WebDriver获取localStorage

更新时间: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.