2017-11-12 2 views
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!!!"); 
    } 
} 

}

+1

가져 오기에서 점을 제거하십시오. 그리고 다음에 코드를 텍스트가 아닌 이미지로 게시하십시오. – Guy

+0

수업을 가져 오는 중에 예외가 발생했음을 보여주고 싶었습니다. – user5067842

답변

0

사용 셀레늄 3.0을하려고 나있어 내 IDE의 snapshot는 가장 안정적입니다 3.4 버전까지. 당신은 그 버전에 어떤 문제도 직면하지 않을 것이다. 내 제안은 3.0 버전이 될 것입니다.

관련 문제