-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathplaylistPage.ts
More file actions
19 lines (17 loc) · 828 Bytes
/
playlistPage.ts
File metadata and controls
19 lines (17 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Page } from '@playwright/test';
import { VideoComponent } from '../../components/videoComponent';
import { BasePage } from './BasePage';
const PLAYLIST_PAGE_HORIZONTAL_VIDEO_SELECTOR = '//*[@id="player-horizontal_html5_api"]';
const PLAYLIST_PAGE_VERTICAL_VIDEO_SELECTOR = '//*[@id="player-vertical_html5_api"]';
/**
* Video player examples playlist page object
*/
export class PlaylistPage extends BasePage {
public playlistHorizontalVideoComponent: VideoComponent;
public playlistVerticalVideoComponent: VideoComponent;
constructor(page: Page) {
super(page);
this.playlistHorizontalVideoComponent = new VideoComponent(page, PLAYLIST_PAGE_HORIZONTAL_VIDEO_SELECTOR);
this.playlistVerticalVideoComponent = new VideoComponent(page, PLAYLIST_PAGE_VERTICAL_VIDEO_SELECTOR);
}
}