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

Commit

Permalink
fix(browser): browser.navigate() return type. (#4932)
Browse files Browse the repository at this point in the history
Changing return type of browser.navigate() to be Navigation instead of any.
  • Loading branch information
bcstodds authored and qiyigg committed Aug 23, 2018
1 parent 2632bb6 commit 07fefeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/browser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {BPClient} from 'blocking-proxy';
import {ActionSequence, By, Capabilities, Command as WdCommand, FileDetector, ICommandName, Options, promise as wdpromise, Session, TargetLocator, TouchSequence, until, WebDriver, WebElement, WebElementPromise} from 'selenium-webdriver';
import {ActionSequence, By, Capabilities, Command as WdCommand, FileDetector, ICommandName, Navigation, Options, promise as wdpromise, Session, TargetLocator, TouchSequence, until, WebDriver, WebElement, WebElementPromise} from 'selenium-webdriver';
import * as url from 'url';
import {extend as extendWD, ExtendedWebDriver} from 'webdriver-js-extender';

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

0 comments on commit 07fefeb

Please sign in to comment.