We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following code won't work, webkitFullscreenElement is undefined even if Full Screen mode is set:
webkitFullscreenElement
isFullScreen: async function (page) { const executionContext = await page.mainFrame().executionContext(); const fullscreenElement = await executionContext.evaluate(() => { return document.webkitFullscreenElement }); console.debug('isFullScreen: ' + fullscreenElement); return !!(fullscreenElement && fullscreenElement.nodeName === 'video'); }
The text was updated successfully, but these errors were encountered:
@samuelsh You should use evaluateHandle instead of evaluate.
evaluateHandle
evaluate
It's unfortunate that page.evaluate doesn't throw an error in this case; this will be fixed in the next major release: #2079
page.evaluate
Sorry, something went wrong.
No branches or pull requests
Following code won't work,
webkitFullscreenElement
is undefined even if Full Screen mode is set:The text was updated successfully, but these errors were encountered: