Skip to content

Commit bce6a98

Browse files
authored
Update WebDriver.js
1 parent ce504d6 commit bce6a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper/WebDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ async seeElement(locator) {
14621462
const elements = await this._locate(locator, true);
14631463
assertElementExists(elements, locator);
14641464

1465-
const visibility = await Promise.all(elements.map(el => el.isDisplayed()));
1465+
const visibility = await forEachAsync(elements, async el => el.isDisplayed());
14661466

14671467
try {
14681468
return truth(`elements of ${new Locator(locator)}`, 'to be seen').assert(visibility);

0 commit comments

Comments
 (0)