我想在我硬盘上的网页上使用Selenium WebDriver.我尝试过类似的东西: selenium = new WebDriverBackedSelenium(driver, "C:\\...dispatcher.html"); …而不是正常: selenium = new WebDriverBackedSelenium(driver, "http://
selenium = new WebDriverBackedSelenium(driver, "C:\\...dispatcher.html");
…而不是正常:
selenium = new WebDriverBackedSelenium(driver, "http://www.dunnowhattodo.org");
…但它不起作用(我收到错误“未知协议:c”).
尝试使用此方法:webdriver.get("file:///D:/folder/abcd.html");
(要么)
selenium = new WebDriverBackedSelenium(driver, "file:///D:/folder/abcd.html");