0
refrence 라이브러리 (빌드 경로에서 구성한 클래스)에이 클래스가 있지만, 셀렌 3.7.1에서 클래스 파일을 가져올 수 없습니다.셀렌에서 ChromeOption 클래스를 가져올 수 없습니다.
도와주세요. 다음은
내가 실행을 코드
package mrLogin;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions; //Getting exception in this line
public class Login {
public static String driverPath = "C:/auto/Mass_Retail_Auto/bin/mrLogin/";
public static WebDriver driver;
public static ChromeOptions options;
public static void main(String[] args) {
try{
//options.AddExtension("C:/auto/Mass_Retail_Auto/bin/mrLogin/modheader
2.1.2.crx");
System.out.println("launching chrome browser");
System.setProperty("webdriver.chrome.driver",
driverPath+"chromedriver.exe");
driver = new ChromeDriver();
driver.navigate().to("http://google.com");
}
catch(Exception e){
e.printStackTrace();
}
finally {
driver.close();
System.out.println("Browser closed!!!");
}
}
}
가져 오기에서 점을 제거하십시오. 그리고 다음에 코드를 텍스트가 아닌 이미지로 게시하십시오. – Guy
수업을 가져 오는 중에 예외가 발생했음을 보여주고 싶었습니다. – user5067842