Try using this method:
webdriver.get("file:///D:/folder/abcd.html");
(or)
selenium = new WebDriverBackedSelenium(driver, "file:///D:/folder/abcd.html");
More Related Contents:
- How to construct a relative path in Java from two absolute paths (or URLs)?
- Android – Get real path of a .txt file selected from the file explorer
- Selenium – Basic Authentication via url
- How to use a servlet filter in Java to change an incoming servlet request url?
- How can I ask the Selenium-WebDriver to wait for few seconds in Java?
- java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property
- Test if element is present using Selenium WebDriver?
- How to select/get drop down option in Selenium 2
- Switch tabs using Selenium WebDriver with Java
- How do I make an http request using cookies on Android?
- Cannot resolve constructor FirefoxDriver(org.openqa.selenium.firefox.FirefoxProfile)
- How to auto-download through Firefox browser using FirefoxProfile?
- How to select an item from a dropdown list using Selenium WebDriver with java?
- How to perform Mouse Wheel scrolling over HTML5 Canvas in Selenium?
- What is the best way to avoid NoSuchElementException in Selenium?
- Safe use of HttpURLConnection
- InputStream from a URL
- Setting up Eclipse with JRE Path
- How to automate Google Home Page auto suggestion?
- How can I check if an element exists with Selenium WebDriver? [duplicate]
- How to disable push-notifications using Selenium for Firefox and Chrome?
- Using Selenium WebDriver with Tor
- how to send an array in url request
- WebDriver vs ChromeDriver
- Compound class names are not supported error in WebDriver
- Checking if a URL exists or not
- How to wait for either of the two elements in the page using selenium xpath
- How to wait until an element no longer exists in Selenium
- Converting Relative Paths to Absolute Paths
- TestNG An internal error occurred during launching