Class webdriver.WebDriver.Navigation
Defined in: webdriver.js.
Constructor Attributes | Constructor Name and Description |
---|---|
webdriver.WebDriver.Navigation(driver)
Interface for navigating back and forth in the browser history.
|
Method Attributes | Method Name and Description |
---|---|
back()
Schedules a command to move backwards in the browser history.
|
|
forward()
Schedules a command to move forwards in the browser history.
|
|
refresh()
Schedules a command to refresh the current page.
|
|
to(url)
Schedules a command to navigate to a new URL.
|
Class Detail
webdriver.WebDriver.Navigation(driver)
Interface for navigating back and forth in the browser history.
- Parameters:
- {!webdriver.WebDriver} driver
- The parent driver.
Method Detail
{!webdriver.promise.Promise}
back()
Schedules a command to move backwards in the browser history.
- Returns:
- {!webdriver.promise.Promise} A promise that will be resolved when the navigation event has completed.
{!webdriver.promise.Promise}
forward()
Schedules a command to move forwards in the browser history.
- Returns:
- {!webdriver.promise.Promise} A promise that will be resolved when the navigation event has completed.
{!webdriver.promise.Promise}
refresh()
Schedules a command to refresh the current page.
- Returns:
- {!webdriver.promise.Promise} A promise that will be resolved when the navigation event has completed.
{!webdriver.promise.Promise}
to(url)
Schedules a command to navigate to a new URL.
- Parameters:
- {string} url
- The URL to navigate to.
- Returns:
- {!webdriver.promise.Promise} A promise that will be resolved when the URL has been loaded.