@@ -747,8 +747,8 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
747
747
* the wrapped webdriver directly.
748
748
*
749
749
* @example
750
- * browser.get('https://angularjs.org/');
751
- * expect(browser.getCurrentUrl()).toBe('https://angularjs.org/');
750
+ * await browser.get('https://angularjs.org/');
751
+ * expect(await browser.getCurrentUrl()).toBe('https://angularjs.org/');
752
752
*
753
753
* @param {string } destination Destination URL.
754
754
* @param {number= } opt_timeout Number of milliseconds to wait for Angular to
@@ -894,9 +894,9 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
894
894
* Browse to another page using in-page navigation.
895
895
*
896
896
* @example
897
- * browser.get('http://angular.github.io/protractor/#/tutorial');
898
- * browser.setLocation('api');
899
- * expect(browser.getCurrentUrl())
897
+ * await browser.get('http://angular.github.io/protractor/#/tutorial');
898
+ * await browser.setLocation('api');
899
+ * expect(await browser.getCurrentUrl())
900
900
* .toBe('http://angular.github.io/protractor/#/api');
901
901
*
902
902
* @param {string } url In page URL using the same syntax as $location.url()
@@ -922,8 +922,8 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
922
922
*
923
923
* @deprecated Please use `browser.getCurrentUrl()`
924
924
* @example
925
- * browser.get('http://angular.github.io/protractor/#/api');
926
- * expect(browser.getLocationAbsUrl())
925
+ * await browser.get('http://angular.github.io/protractor/#/api');
926
+ * expect(await browser.getLocationAbsUrl())
927
927
* .toBe('http://angular.github.io/protractor/#/api');
928
928
* @returns {Promise<string> } The current absolute url from
929
929
* AngularJS.
0 commit comments