正在获取org.openqa.selenium.TimeoutException:timeout:从渲染器接收消息时超时



Getting org.openqa.selenium.TimeoutException:timeout:从渲染器接收消息超时:10.000使用Chrome 85.0.4183.121 for Windows刚刚将Chrome从102自动更新为121,并出现了这个问题。日志看起来像是在截图时发生的(使用org.openqa.selence.TakesScreenshot(。chrome浏览器121的发布说明有什么问题吗(https://chromereleases.googleblog.com/)确实提到他们试图解决121版本的越界存储问题,但可能它与硒的集成有问题?

import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import ru.yandex.qatools.ashot.AShot;
import ru.yandex.qatools.ashot.Screenshot;
import ru.yandex.qatools.ashot.shooting.ShootingStrategies;
import ru.yandex.qatools.ashot.shooting.ShootingStrategy;
import javax.imageio.ImageIO;
import java.io.File;
import java.io.IOException;
public class Screenshot123 {

public static void takescreenshot(String filename) throws IOException {
Screenshot screenshot=new AShot().shootingStrategy(ShootingStrategies.viewportPasting(1000)).takeScreenshot(driver);


String dest=System.getProperty("user.dir")+"\ScreenShots\";


ImageIO.write(screenshot.getImage(),"PNG",new File(dest));
}
}

最新更新