我无法启动Google Chrome浏览器版本78.0.3904.108。 chromedriver版本为ChromeDriver 78.0.3904.105。
@Test
public void uiTest() {
System.setProperty("webdriver.chrome.driver", "src/test/resources/driver/chromedriver");
System.setProperty("selenide.browser", "Chrome");
open("https://www.google.com");
}
错误如下:
Starting ChromeDriver 78.0.3904.105 (60e2d8774a8151efa6a00b1f358371b1e0e07ee2-refs/branch-heads/3904@{#877}) on port 3782
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
java.lang.NoSuchMethodError: com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimiter;
即使没有System.setProperty配置,错误也相同。可能与Chrome版本有关吗?
答案 0 :(得分:0)
我已经解决了这个问题。 必须添加番石榴依赖性。
Ext.define('Pms.view.test.FormModel', {
extend: 'Ext.app.ViewModel',
alias: 'viewModel.test-form',
data: {
windowTitle: 'Title bound!'
}
});