This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,16 @@ webdriver.WebDriver.prototype.executeAsyncScript = (script, var_args) => {};
250
250
webdriver . WebDriver . prototype . call = function ( fn , opt_scope , var_args ) { } ;
251
251
252
252
/**
253
- * Schedules a command to wait for a condition to hold.
253
+ * Schedules a command to wait for a condition to hold or {@link
254
+ * webdriver.promise.Promise promise} to be resolved.
254
255
*
255
- * This function may be used to block the command flow on the resolution
256
- * of a {@link webdriver.promise.Promise promise}. When given a promise, the
257
- * command will simply wait for its resolution before completing. A timeout may
258
- * be provided to fail the command if the promise does not resolve before the
259
- * timeout expires.
256
+ * This function blocks WebDriver's control flow, not the javascript runtime.
257
+ * It will only delay future webdriver commands from being executed (e.g. it
258
+ * will cause Protractor to wait before sending future commands to the selenium
259
+ * server), and only when the webdriver control flow is enabled.
260
+ *
261
+ * This function returnes a promise, which can be used if you need to block
262
+ * javascript execution and not just the control flow.
260
263
*
261
264
* See also {@link ExpectedConditions}
262
265
*
You can’t perform that action at this time.
0 commit comments