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
Related to microsoft/playwright#21780. Is there any way to bypass cross-origin objects? Because this code
document.querySelector('iframe[title="Основное содержание испытания hCaptcha"]').contentWindow.document
returns Uncaught DOMException: Permission denied to access property "document" on cross-origin object. Same in playwright:
Uncaught DOMException: Permission denied to access property "document" on cross-origin object
captcha = await page.wait_for_selector('iframe[title="Основное содержание испытания hCaptcha"]') frame = await captcha.content_frame()
Exception:
ElementHandle.content_frame: Protocol error (Page.describeNode): error in channel "content::9/13/2": exception while running method "describeNode" in namespace "page": Permission denied to access property "docShell" on cross-origin object _describeNode@chrome://juggler/content/content/PageAgent.js:417:62 _onMessageInternal@chrome://juggler/content/SimpleChannel.js:237:37 _onMessage@chrome://juggler/content/SimpleChannel.js:194:12 bindToActor/actor.receiveMessage@chrome://juggler/content/SimpleChannel.js:39:44 playwright._impl._errors.Error: Protocol error (Page.describeNode): error in channel "content::9/13/2": exception while running method "describeNode" in namespace "page": Permission denied to access property "docShell" on cross-origin object _describeNode@chrome://juggler/content/content/PageAgent.js:417:62 _onMessageInternal@chrome://juggler/content/SimpleChannel.js:237:37 _onMessage@chrome://juggler/content/SimpleChannel.js:194:12 bindToActor/actor.receiveMessage@chrome://juggler/content/SimpleChannel.js:39:44
Methods like bounding_box() work and return everything correctly, but page.mouse.click(x, y) on iframe coordinates also doesn't work
bounding_box()
page.mouse.click(x, y)
The text was updated successfully, but these errors were encountered:
seems to be only a playwright problem, puppeteer and selenium knows how to work with OOPIF, is there any way to connect them instead of playwright?
Sorry, something went wrong.
No branches or pull requests
Related to microsoft/playwright#21780.
Is there any way to bypass cross-origin objects?
Because this code
returns
Uncaught DOMException: Permission denied to access property "document" on cross-origin object
.Same in playwright:
Exception:
Methods like
bounding_box()
work and return everything correctly, butpage.mouse.click(x, y)
on iframe coordinates also doesn't workThe text was updated successfully, but these errors were encountered: