当前位置: 首页 > 知识库问答 >
问题:

[严重]:通过Java调用selenium的driver.get()方法时,从呈现器接收消息超时:298.674

寿亦
2023-03-14
@BeforeClass    
public void setup() {
    System.setProperty("webdriver.chrome.driver","C:\\chromedriver_win32\\chromedriver.exe");       
driver = new ChromeDriver();
driver.get("XXXXXXXXXXXXXXXXXXXXXXXXXXXXX");         
driver.manage().window().maximize();         
driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS); 
}

使用driver.get(“xxxxxx”)方法加载Url,大约需要4分钟,会引发以下异常

在端口6967上启动ChromeDriver 73.0.3683.68(47787EC04B6E38E22703E856E101E840B65AFE72)只允许本地连接。请保护ChromeDriver和相关测试框架使用的端口,以防止恶意代码访问。2019年4月20日3:59:52 PM org.openqa.selenium.remote.protocolhandshake createSession信息:检测到的方言:OSS[1555756492.787][严重]:从呈现器接收消息超时:298.674[1555756492.795][严重]:从呈现器接收消息超时:-0.008失败配置:@beforeclass setup org.openqa.selenium.timeoutexception:timeout(会话信息:chromedriver=73.0.3683.103)(驱动程序信息5AFE72),Platform=Windows NT 6.1.7601 SP1 x86)(警告:服务器未提供任何stacktrace信息)命令持续时间或超时时间:300.2秒生成信息:版本:“未知”,修订:“未知”,时间:“未知”系统信息:主机:“admin-pc”,IP:“192.168.1.6”,OS.name:“Windows 7”,OS.arch:“x86”,OS.version:“6.1”,Java.version:“1.8.0_121”驱动程序信息:org.openqa.selenium.chrome.chromeDriver功能[{MobileEmulationEnabled=false,timeouts=30000.0},hastouchscreen=false,Platform=xp,AcceptsSlcerts=false,goog:chromeOptions={debuggeraddress=localhost:51331},AcceptinSecureCerts=false,WebStorageEnabled=true,BrowserName=Chrome,TakessCreenShot=true,JavaScriptEnabled=true,SetWindowrect=true,ExpectiontDalertBehaviour=Ignore,ApplicationCacheEnabled=false,Rotatable=false,dir=c:\users\admin\appdata\local\temp\scoped_dir2592_17813},takesheapsnapshot=true,pageLoadStrategy=normal,strictfileinteractability=false,databaseenabled=false,handlesalerts=true,version=73.0.3683.103,browserconnectionenabled=false,proxy=proxy(),nativeevents=true,locationcontextenabled=true,

共有1个答案

闾丘霖
2023-03-14
INFO: Detected dialect: OSS 
[1555756492.787][SEVERE]: Timed out receiving message from renderer: 298.674 
[1555756492.795][SEVERE]: Timed out receiving message from renderer: -0.008 
FAILED CONFIGURATION: @BeforeClass setup org.openqa.selenium.TimeoutException: timeout 
 (Session info: chrome=73.0.3683.103) 
 (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Windows NT 6.1.7601 SP1 x86) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 300.02 seconds 
 Build info: version: 'unknown', revision: 'unknown', time: 'unknown' 
 System info: host: 'ADMIN-PC', ip: '192.168.1.6', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_121'
    null
 类似资料: