Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试加载页面,并且在单击按钮后自动检查 POST 请求的过程。
为此,我需要在单击按钮之前清除所有先前条目的网络选项卡,否则由于某种原因它不会显示在列表中。
有没有办法通过 Selenium Java 中的日志记录或其他方式来做到这一点?
据我所知,没有办法按照您的意图与 Chrome 的开发工具进行交互。不过,如果您有兴趣从 Chrome 中的“网络”选项卡获取/解析数据,您可以按照他们网站上的快速教程进行操作。
我不知道你有什么想法,但在这里我给你 2 美分。也许您可以访问这些数据并在其他地方工作,而不是不断刷新。
这是一个与您类似的问题。