Skip to content

Commit 9ca843a

Browse files
committed
Added waitForSelector to CommonPageInterface
1 parent 9befb8f commit 9ca843a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interfaces/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type {PageWaitForSelectorOptionsState} from '@data/types/playwright';
12
import type {BrowserContext, Frame, Page} from '@playwright/test';
23

34
export interface CommonPageInterface {
@@ -8,5 +9,6 @@ export interface CommonPageInterface {
89
goToFo(page: Page): Promise<void>;
910
reloadPage(page: Page): Promise<void>;
1011
resize(page: Page, mobileSize: boolean): Promise<void>;
12+
waitForSelector(page: Page | Frame, selector: string, state: PageWaitForSelectorOptionsState, timeout?: number): Promise<void>
1113
waitForSelectorAndClick(page: Frame | Page, selector: string, timeout?: number): Promise<void>
1214
}

0 commit comments

Comments
 (0)