2016-07-27 2 views
0

나는이 오류 받고 있어요 , 내가 메시지를 받고 있어요 "로컬 연결 허용"

System.setProperty("webdriver.ie.driver", "C:\\Selenium_Software\\IEDriverServer.exe"); 
DesiredCapabilities capabilities = new DesiredCapabilities(); 
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);  
driver = new InternetExplorerDriver(capabilities); 
driver.get("http://10.32.147.151/RoSServer/WebClient/DoculiveSimulationExt.asp"); 
WD.wait(4); 
flag=IsObjectPresent.byXpath("//table[@id='AutoNumber1']/tbody/tr[2]/td[6]/input[3]", true); 
Click.byXpath("//table[@id='AutoNumber1']/tbody/tr[2]/td[6]/input[3]"); 

아래에있는 내 코드는 다음과 같습니다

Started InternetExplorerDriver server (64-bit) 2.53.1.0

Listening on port 5069

Only local connections are allowed

+0

[LINK] (http://stackoverflow.com/questions/25080500/when-run-webdriver-with-chrome-browser-getting-message-only-local-connection) 링크에서 비슷한 검색어를 참조 할 수 있습니다.) –

+0

실제로 붙여 넣은 링크를 훑어 보았습니다. chromdriver와 아무런 관련이 없습니다. – user1635105

+0

아직도 내가 error.I 무엇입니까 셀레늄 site.But에서 호환 IEdriver는 \t 능력이 아니라 문자열 – user1635105

답변

0

시도 :.

string DRIVER_PATH = @"C:\Selenium_Software\"; 

driver = new InternetExplorerDriver(DRIVER_PATH); 
driver.get("http://10.32.147.151/RoSServer/WebClient/DoculiveSimulationExt.asp"); 
... 
+0

에 주어진 모든 솔루션을 시도 또한 내가 촬영 한 - 이의 새 인스턴스를 초기화 IEDriverServer.exe가있는 디렉터리에 대한 지정된 경로를 사용하는 InternetExplorerDriver 클래스 – user1635105

+0

InternetExplorerDriver (String)를 받아 InternetExplorerDriver 링크 –

+0

셀레늄 기능을 더 잘 이해하기 위해 셀레늄 API를 봅니다. http://seleniumhq.github.io/selenium/docs/api/dotnet/index.html –

0

사람들 say "이 내용은 정보 메시지입니다 메시지가 전화 무엇입니까 드라이버 실행 파일은 로컬 컴퓨터의 연결 만 수락합니다. "

관련 문제