Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 07fefeb

Browse files
bcstoddsqiyigg
authored andcommitted
fix(browser): browser.navigate() return type. (#4932)
Changing return type of browser.navigate() to be Navigation instead of any.
1 parent 2632bb6 commit 07fefeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {BPClient} from 'blocking-proxy';
2-
import {ActionSequence, By, Capabilities, Command as WdCommand, FileDetector, ICommandName, Options, promise as wdpromise, Session, TargetLocator, TouchSequence, until, WebDriver, WebElement, WebElementPromise} from 'selenium-webdriver';
2+
import {ActionSequence, By, Capabilities, Command as WdCommand, FileDetector, ICommandName, Navigation, Options, promise as wdpromise, Session, TargetLocator, TouchSequence, until, WebDriver, WebElement, WebElementPromise} from 'selenium-webdriver';
33
import * as url from 'url';
44
import {extend as extendWD, ExtendedWebDriver} from 'webdriver-js-extender';
55

@@ -1019,7 +1019,7 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
10191019
* Mixin navigation methods back into the navigation object so that
10201020
* they are invoked as before, i.e. driver.navigate().refresh()
10211021
*/
1022-
navigate(): any {
1022+
navigate(): Navigation {
10231023
let nav = this.driver.navigate();
10241024
ptorMixin(nav, this, 'refresh');
10251025
return nav;

0 commit comments

Comments
 (0)