Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix: remove waitForExist from waitForDisplayed implementation #251

Merged
merged 2 commits into from
Oct 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/commons/BrowserUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,6 @@ export namespace BrowserUtils {
*/
export function waitForDisplayed(selector: string, options?: WaitForOptions): void {
Reporter.debug(`Wait for an element to be visible '${selector}'`);
if (options?.reverse) {
waitForExist(selector, options);
}
tryBlock(
() => $(selector).waitForDisplayed({ ...{ timeout: DEFAULT_TIME_OUT }, ...options }),
`Element not visible '${selector}'`
Expand Down