From 0fa663a4096f87a56fe87e09de7b06ae9ba06602 Mon Sep 17 00:00:00 2001 From: Tenzin Chemi Date: Thu, 6 Feb 2020 23:15:13 +0530 Subject: [PATCH 1/3] Update webdriver.js --- lib/selenium-webdriver/webdriver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/selenium-webdriver/webdriver.js b/lib/selenium-webdriver/webdriver.js index c74cbb058..55ab55ec8 100644 --- a/lib/selenium-webdriver/webdriver.js +++ b/lib/selenium-webdriver/webdriver.js @@ -258,7 +258,7 @@ webdriver.WebDriver.prototype.call = function(fn, opt_scope, var_args) {}; * will cause Protractor to wait before sending future commands to the selenium * server), and only when the webdriver control flow is enabled. * - * This function returnes a promise, which can be used if you need to block + * This function returns a promise, which can be used if you need to block * javascript execution and not just the control flow. * * See also {@link ExpectedConditions} From d8b9f18d32fccfb9df8de5741216f2c3d241d73b Mon Sep 17 00:00:00 2001 From: Tenzin Chemi Date: Thu, 6 Feb 2020 23:48:21 +0530 Subject: [PATCH 2/3] Update async-await.md --- docs/async-await.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/async-await.md b/docs/async-await.md index ed3b57a5d..554a35b08 100644 --- a/docs/async-await.md +++ b/docs/async-await.md @@ -44,7 +44,7 @@ describe('angularjs homepage', function() { As you can see, the syntax is almost the same with TypeScript async/await. -1. We need wrap our asynchronous function with “async”. +1. We need to wrap our asynchronous function with “async”. 1. We can add “await” keyword to each operation that we want our program to wait for. From ba9088e695fb53501a824af98908ee76711da0f9 Mon Sep 17 00:00:00 2001 From: Tenzin Chemi Date: Fri, 7 Feb 2020 09:24:06 +0530 Subject: [PATCH 3/3] Update async-await.md --- docs/async-await.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/async-await.md b/docs/async-await.md index 554a35b08..ab5219dae 100644 --- a/docs/async-await.md +++ b/docs/async-await.md @@ -51,7 +51,7 @@ As you can see, the syntax is almost the same with TypeScript async/await. **Note:** Never forget to add “await” keyword in an async function, it may bring some unexpected problem (e.g. your test might fail silently and always be reported as passed). -1. Don’t forget to turn off control_flow, you cannot use a mix of `async`/`await` and the control flow: +1. Don’t forget to turn off control flow, you cannot use a mix of `async`/`await` and the control flow: `async`/`await` causes the control flow to become unreliable (see [github issue]( https://github.com/SeleniumHQ/selenium/issues/3037)). So if you `async`/`await` anywhere in a spec, you should use the