Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Getting org.openqa.selenium.TimeoutException:超时:从渲染器接收消息超时:10.000_Selenium_Google Chrome_Selenium Webdriver_Selenium Chromedriver - Fatal编程技术网

Getting org.openqa.selenium.TimeoutException:超时:从渲染器接收消息超时:10.000

Getting org.openqa.selenium.TimeoutException:超时:从渲染器接收消息超时:10.000,selenium,google-chrome,selenium-webdriver,selenium-chromedriver,Selenium,Google Chrome,Selenium Webdriver,Selenium Chromedriver,Getting org.openqa.selenium.TimeoutException:超时:从渲染器接收消息超时:10.000 在Windows上使用Chrome 85.0.4183.121时,Chrome从102自动更新为121,并且出现了这个问题。日志看起来像是在截图时发生的(使用org.openqa.selenium.TakesScreenshot)。chrome browser 121发行版的发行说明()请注意,他们试图解决121版本的超限存储问题,但与selenium的集成可能存在

Getting org.openqa.selenium.TimeoutException:超时:从渲染器接收消息超时:10.000
在Windows上使用Chrome 85.0.4183.121时,Chrome从102自动更新为121,并且出现了这个问题。日志看起来像是在截图时发生的(使用org.openqa.selenium.TakesScreenshot)。chrome browser 121发行版的发行说明()请注意,他们试图解决121版本的超限存储问题,但与selenium的集成可能存在问题?

121版本没有问题,您正在使用什么chrome浏览器?您可以通过编辑分享您的taki屏幕截图吗question@JustinLambert我使用的是chrome浏览器版本:85.0.4183.121和chromeDriver版本:85.0.4183.87。此外,我正在使用org.openqa.selenium.TakesScreenshot.down代码截图,您应该在这里添加您尝试的内容和共享代码片段得到的错误,我偶尔会看到类似的内容,但它似乎与“单击”之类的UI操作相关联。org.openqa.selenium.TimeoutException:timeout:timeout从渲染器接收消息:300.000(会话信息:chrome=88.0.4324.192)我不认为这与捕获屏幕截图有任何关系,但它看起来像chromedriver或chrome浏览器正在尝试做的事情。这个问题似乎类似:
    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));
    }
}