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.
我正在使用 WebDriverBackedSelenium
我注意到 selenium.setTimeout() 命令被完全忽略了。还有其他人面临这个问题吗?有解决办法吗?
恕我直言解决的两种可能性:
WebDriver driver; driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
第二种方式:
Thread.sleep(...miliseconds...)
取决于你要使用它的目的。