Java 有没有办法在driver.manage().timeouts()方法之外设置隐式超时?

Java 有没有办法在driver.manage().timeouts()方法之外设置隐式超时?,java,selenium-chromedriver,Java,Selenium Chromedriver,我继续得到一个“element not interactiable”错误,我认为这是由于页面上的一个操作后链接加载速度不够快造成的。隐式驱动程序等待似乎不起作用,看起来甚至没有设置 我这样设置隐式等待驱动程序:(Pageload似乎没有帮助) 功能[{mobileEmulationEnabled=false,超时={implicit=0,pageLoad=300000,script=30000},hasTouchScreen=false,platform=XP,acceptSslCerts=fa

我继续得到一个“element not interactiable”错误,我认为这是由于页面上的一个操作后链接加载速度不够快造成的。隐式驱动程序等待似乎不起作用,看起来甚至没有设置

我这样设置隐式等待驱动程序:(Pageload似乎没有帮助)

功能[{mobileEmulationEnabled=false,超时={implicit=0,pageLoad=300000,script=30000},hasTouchScreen=false,platform=XP,acceptSslCerts=false,goog:chromeOptions={debuggerAddress=localhost:63891},AcceptInsureCerts=false,WebStorage Enabled=true,browserName=chrome,takesScreenshot=true,javascriptEnabled=true,platformName=XP,setWindowRect=true,unexpectedAlertBehaviour=ignore,applicationCacheEnabled=false,rotatable=false,networkConnectionEnabled=false,chrome={chromedriverVersion=2.45.615291(ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),userDataDir=C:\Users\jxg262\AppData\Local\Temp\scoped\U dir2012\U 6758},takesHeapSnapshot=true,unhandledPromptBehavior=ignore,PageLoadStrictStricFileInteractivity=false,databaseEnabled=false,handlesAlerts=true,version=71.0.3578.98,browserConnectionEnabled=false,proxy=proxy(),nativeEvents=true,locationContextEnabled=true,CSSSelectorEnabled=true}]


这似乎表明没有设置隐式超时。我做错了什么吗?有没有办法在其他地方设置它?

隐式超时是chrome服务器超时,所以请在启动chrome之前尝试设置它,如下所示

ChromeOptions chromeOptions = new ChromeOptions();

Map<String, Integer> timeouts = new HashMap<>();
timeouts.put("implicit", 3000);
chromeOptions.setCapability("timeouts", timeouts);

webDriver = new ChromeDriver(chromeOptions);
ChromeOptions ChromeOptions=新的ChromeOptions();
映射超时=新建HashMap();
超时。输入(“隐式”,3000);
色度选项。设置能力(“超时”,超时);
webDriver=新的ChromeDriver(chromeOptions);
这有帮助吗。。。
ChromeOptions chromeOptions = new ChromeOptions();

Map<String, Integer> timeouts = new HashMap<>();
timeouts.put("implicit", 3000);
chromeOptions.setCapability("timeouts", timeouts);

webDriver = new ChromeDriver(chromeOptions);