Context:
- Playwright Version: 1.6.2
- Operating System: Mac
- Node.js version: v13.13.0
- Browser: Chromium
npx: installed 1 in 3.219s
System:
OS: macOS 11.0.1
Memory: 1.09 GB / 16.00 GB
Binaries:
Node: 13.13.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.9 - /usr/local/bin/npm
Languages:
Bash: 3.2.57 - /bin/bash
Code Snippet
await page.click('[data-test="videoplayer"]');
Describe the bug
I have a React application with a simple video tag and loads the video source dynamically:
<video data-test='videoplayer' width='90%' controls controlsList="nodownload" style={{ marginTop: 20 }} ref={videoPlayer} onClick={() => videoPlayer.current && videoPlayer.current.play()}>
{videoUrls.map(url => {
return (
<source
key={url}
src={url}
type={'video/mp4'}
/>
)})}
</video>
this works fine, except when I'm on Playwright.
await page.click('[data-test="videoplayer"]');
The video seems to never load and stays on a black screen, I have tried to run it on codegen environment as well and inspect the element, the URL is fine and if I copy/pate it to a different browser tab it opens the video normally.
Any idea what it could be? and how could I fix it?
Context:
npx: installed 1 in 3.219s
System:
OS: macOS 11.0.1
Memory: 1.09 GB / 16.00 GB
Binaries:
Node: 13.13.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.9 - /usr/local/bin/npm
Languages:
Bash: 3.2.57 - /bin/bash
Code Snippet
Describe the bug
I have a React application with a simple video tag and loads the video source dynamically:
this works fine, except when I'm on Playwright.
await page.click('[data-test="videoplayer"]');The video seems to never load and stays on a black screen, I have tried to run it on
codegenenvironment as well and inspect the element, the URL is fine and if I copy/pate it to a different browser tab it opens the video normally.Any idea what it could be? and how could I fix it?