OpenFin + Selenium-org.openqa.selenium.WebDriverException:未知错误:DevToolsActivePort文件不存在

时间:2019-03-01 14:18:24

标签: selenium-webdriver openfin

我尝试在PC上使用Selenium RemoteWebDriver启动OpenFin应用程序,但出现此错误“ DevToolActivePort文件不存在”

System.setProperty(“ webdriver.chrome.driver”,“ C:\ DashBoard_Project \ SeleniumDriverLibs \ chromedriver_2.40.exe”);             System.setProperty(“ webdriver.chrome.logfile”,“ H:\ chromedriver.log”);             字符串execPath =“ C:\ DashBoard_Project \ OpenFin \ RunOpenFin.bat”; //“ C:\ Program Files \ aim \ gfs \ quad \ cib-tech-services \ openfin-rvm \ 4.7.0.3 \ bin \ OpenFinRVM.exe “; // OpenFinRVM.exe的路径//             字符串execArgs =“ --config = C://DashBoard_Project//OpenFin/config.json”;             字符串remoteDriverURL =“ http://localhost:9515”; //System.setProperty("webdriver.chrome.driver“,” C:\ DashBoard_Project \ SeleniumDriverLibs \ chromedriver.exe“); // Selenium服务器或chromedriver的URL             字符串securityRealm = System.getProperty(“ realm1”); //安全领域传递给RunOpenFin.bat             WebDriver驱动程序;             ChromeOptions options = new ChromeOptions();             如果(securityRealm!= null)             {                 options.addArguments(String.format(“-security-realm =%s”,securityRealm));             }             options.setBinary(execPath);             options.addArguments(execArgs);             options.addArguments(“ start-maximized”);             options.addArguments(“ disable-infobars”);             options.addArguments(“-disable-extensions”);             options.addArguments(“-disable-gpu”);             options.addArguments(“-disable-dev-shm-usage”);             options.addArguments(“-no-sandbox”);             options.addArguments(“-headless”);             options.setExperimentalOption(“ useAutomationExtension”,false);             System.out.println(“创建远程驱动程序” + remoteDriverURL);             driver = new ChromeDriver(options);

0 个答案:

没有答案