Context:
- Playwright Version: 0.13.0
- Operating System: Linux
- Node version: 10.20.1
- Browser: Webkit
- Extra: Doesn't exist on MacOS
Code Snippet
Unhandled Rejection (NotSupportedError): The operation is not supported.
(anonymous function)
src/molecules/Video/Video.tsx:23
20 | useEffect(() => {
21 | const videoElement = videoRef.current
22 | if (inView) {
> 23 | videoElement?.play()
24 | } else {
25 | videoElement?.pause()
26 | }
Describe the bug
Linux version of Playwright Webkit engine doesn't support video.play() in JS. The same video is easily played by an actual Safari (13.1.1) and MacOS version of Playwright thanks to playsInline attribute on <video />.