无论何时运行以下代码,它都显示错误按摩并且它还没有关闭浏览器: -
代码: -
using
结果:
String service = "C:\\Users\\arvind\\Downloads\\IEDriverServer_x64_2.52.2\\IEDriverServer.exe";
System.setProperty("webdriver.ie.driver", service);
InternetExplorerDriver driver = new InternetExplorerDriver();
driver.get("https://in.mail.yahoo.com/?.intl=in&.lang=en-IN");
System.out.println("successful");
driver.quit();
答案 0 :(得分:0)
在回答问题的第一部分时,Only local connections are allowed
消息不错误。
如果查看驱动程序source,如果“静默”模式关闭,并且未设置任何IP白名单条目,则会写出该消息。它本身没有任何影响。
至于quit()
问题,您需要提供更多详细信息,但也许这个帖子可能有所帮助:https://github.com/seleniumhq/selenium-google-code-issue-archive/issues/3324