@@ -747,8 +747,8 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
747747 * the wrapped webdriver directly.
748748 *
749749 * @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/');
752752 *
753753 * @param {string } destination Destination URL.
754754 * @param {number= } opt_timeout Number of milliseconds to wait for Angular to
@@ -894,9 +894,9 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
894894 * Browse to another page using in-page navigation.
895895 *
896896 * @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())
900900 * .toBe('http://angular.github.io/protractor/#/api');
901901 *
902902 * @param {string } url In page URL using the same syntax as $location.url()
@@ -922,8 +922,8 @@ export class ProtractorBrowser extends AbstractExtendedWebDriver {
922922 *
923923 * @deprecated Please use `browser.getCurrentUrl()`
924924 * @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())
927927 * .toBe('http://angular.github.io/protractor/#/api');
928928 * @returns {Promise<string> } The current absolute url from
929929 * AngularJS.
0 commit comments