from selenium import webdriverdriver.get("https://9gag.com")#page that taketoo much time to load
由于加载此页面花费了太多时间,所以我希望在单击pyQt按钮并开始填写表单时立即停止加载该页面,我不想使用browser.set_page_load_timeout
而且每次由于页面加载时间而导致某些测试用例失败。事实上,我已经明确地提到了Thread.sleep("2000");,无论我觉得加载它需要更多的时间。但仍有5-6个测试案例失败。我如何使我的硒等待直到页面加载?on port 1828
Only local connections are allowed.Exception in thread "main" org.openqa.selenium.ElementNotVi