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.
WebDriver API 中是否有停止页面加载的命令?我有一种情况,页面需要永远加载,即使我想要的所有东西都在那里。我只想模拟手动点击 URL 栏旁边的 X 按钮以停止页面加载。
您可以使用 Javascript 执行程序来停止窗口或发送密钥 Keys.ESCAPE。
有关详细信息,请参阅:https ://sqa.stackexchange.com/questions/5663/is-it-possible-to-stop-page-loading-on-the-browser-using-selenium-web-driver