title: Open A Local HTML file using selenium webdriver
body: <p>how can I open a Local HTML file on my desktop  using the Selenium webdriver?</p>
  
  <p>I tried like below but unable to open</p>
  
  <pre><code>public static String OpenStub (String stub) {
  
    try {
  
      driver=new FirefoxDriver();
      driver.manage().timeouts().pageLoadTimeout(10000, TimeUnit.MILLISECONDS);
  
      driver.get("C://Users//sharmayo//Desktop//testlogin.html");
  
      return "Pass";
    }
  }
  </code></pre>