无法在selenium中初始化chrome浏览器

问题描述 投票:0回答:1
System.setProperty("webdriver.chrome.driver", "C:\\Users\\Dev\\webdrivers\\chromedriver.exe");

driver = new Chromedriver():
driver.manage().window().maximize();

例外:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
selenium-webdriver selenium-chromedriver cucumber
1个回答
0
投票

var driverFolder = @"C:\Users\Dev\webdriver

© www.soinside.com 2019 - 2024. All rights reserved.