Skip to content
New issue

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

[BUG] iframe inside an iframe is not visible #5762

Closed
odeliat opened this issue Mar 9, 2021 · 5 comments
Closed

[BUG] iframe inside an iframe is not visible #5762

odeliat opened this issue Mar 9, 2021 · 5 comments

Comments

@odeliat
Copy link

odeliat commented Mar 9, 2021

Context:
Playwright Version: [1.7.1]
Operating System: [Mac]
Node.js version: [12, 14.9.0]
Browser: [Chromium, Firefox]

System:
OS: macOS 11.1 + windows 10
Memory: 1.25 GB / 32.00 GB

Binaries:
Node: 14.9.0 - /usr/local/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 6.14.7 - /usr/local/bin/npm

Languages:
Bash: 3.2.57 - /bin/bash

npmPackages:
playwright: ^1.7.1 => 1.7.1

Describe the bug
I have a website with a iframe inside iframe.
On chrome, When I go to this iframe I can see the inner iframe.
When I'm running a test with playwright on this website, the inner iframe is blank. (when I open dev-tools, it's suddenly appears)

my test config:

browser = await chromium.launch({headless: isHeadless, args: ["--start-maximized"]});
page = await browser.newPage(
      {
           viewport: isHeadless ? {
           width: 1920,
           height: 1080
      } : null
   }
);

Steps to reproduce:
#5313 (comment)

Do you have any ideas on how to solve this?

@yury-s
Copy link
Member

yury-s commented Mar 10, 2021

I followed the steps from the comment you pointed at and the #webview and #avtive-frame iframes are both populated. Could you share playwright script that doesn't work?

@odeliat
Copy link
Author

odeliat commented Mar 11, 2021

@yury-s
Did you follow the steps with the chromium that lunched from the playwright script?
The playwright script is what I put on the description:

browser = await chromium.launch({headless: isHeadless, args: ["--start-maximized"]});
page = await browser.newPage(
      {
           viewport: isHeadless ? {
           width: 1920,
           height: 1080
      } : null
   }
);

@yury-s
Copy link
Member

yury-s commented Mar 12, 2021

@yury-s
Did you follow the steps with the chromium that lunched from the playwright script?

Yes, this is what I got:

image

@odeliat
Copy link
Author

odeliat commented Mar 16, 2021

Hi @yury-s, This is what I get when I follow the steps:
Screenshot 2021-03-16 095032

What am I doing wrong?

@pavelfeldman
Copy link
Member

Sorry, we need more information and a minimal reproduction to fix the issue. If it still persists, could you re-file it? I can see that you are using Browser preview extension. I'm not sure how it works in the remote workflow, so it might be that it simply isn't capable of working in this setup? In either case, please re-file with a smaller repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants