나는 Selenium Webdriver
와 크롬을 실행하려고 다음과 같은 코드를 사용 해요 :Selenium webdriver에서 Chrome을 여는 방법은 무엇입니까?
System.setProperty("webdriver.chrome.driver",
"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe");
WebDriver driver=new ChromeDriver();
driver.get("http://www.yahoo.com");
크롬 브라우저가 열리지 만 더 진행되지 않습니다. 다음 오류의 원인은 무엇입니까?
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
제 생각에는 zip 파일은 32 비트 용이지만 64 비트 시스템을 사용하고 있습니다. 어쨌든 여전히 동일한 오류가 발생하여 다운로드했습니다 – Shyamala
@ 시아 말라 지금까지 Win-64 비트 용 ChromeDriver가없는 것 같습니다. [확실하지, Win-32 비트 작업 일 수도 있습니다] –
확인란을 선택해 준 솔루션을 사용해 보셨습니까? Thread.sleep() 대신에 유스 케이스를 사용해보십시오. –