Opening a file with protractor

前端 未结 4 1761
挽巷
挽巷 2020-12-08 16:15

Every protractor example I can find on the internet seems to use browser.get with a web URI.

browser.get(\'http://localhost:8000\');
         


        
4条回答
  •  青春惊慌失措
    2020-12-08 16:50

    I think there is typo mistake. In "get" method you should include the URL in double quotes "".

    Try using double quotes like below:

    WebDriver driver=new FirefoxDriver();
    driver.get('file:///E:/Programming%20Samples/HTML%20Samples/First%20Program.html');
    

提交回复
热议问题