Hello, below you can find my TestCafe test:
import { Selector } from 'testcafe';
fixture Test
const closeCookiesWindow = Selector ('#app > div.cookie-notice > div > div > button');
const startExampleVOD = Selector ('#app > div.layout.layout-default > div > div.container.player-test-container > div:nth-child(3) > div:nth-child(1) > div > span');
const startExampleLiveChannel = Selector ('#app > div.layout.layout-default > div > div.container.player-test-container > div:nth-child(3) > div:nth-child(2) > div > span');
test.page(https://player.pl/przetestuj-usluge
)('Test: Example Videos', async t => {
await t
.click(closeCookiesWindow)
.wait(1000)
.click(startExampleVOD)
.click(startExampleLiveChannel)
.wait(50000);
});
I start the test from terminal:
testcafe chrome,firefox,edge abc.js
On chrome:
- Test VOD will only show advertisement, then after ads video won't start,
- Test Live channel will never start.
On Firefox, Edge:
- Test VOD will show advertisement and after ads will start,
- Test Live channel will immediately start.
I need to start the video in chrome to for example check if video description/subtitles are displayed on video player. Could you give me a hint what is the problem with chrome browser here?