From 07fefeb9636f8b3506df2eacbdb4ada29f50fbbd Mon Sep 17 00:00:00 2001 From: Ben Stoddard Date: Thu, 23 Aug 2018 16:53:31 -0700 Subject: [PATCH] fix(browser): browser.navigate() return type. (#4932) Changing return type of browser.navigate() to be Navigation instead of any. --- lib/browser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/browser.ts b/lib/browser.ts index 82807ae3b..6e98c21a3 100644 --- a/lib/browser.ts +++ b/lib/browser.ts @@ -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'; @@ -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;