Java Selenium在findelements上的加载时间很长

时间:2016-02-06 16:36:43

标签: java selenium

我使用selenium远程firefox及其工作正常,但最近我观察到了。一旦我的网络速度变慢,firefox就会在移动到另一个页面后停止加载。

driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
driver.get(baseUrl + "/");
上面的

在尝试连接到baseurl时起作用。但

driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
driver.findElement(By.id("body-container")).click();

此findElement后移到下一页并且不会停止加载;

0 个答案:

没有答案
相关问题