Cann't load iframe which is created with setTimout #29291
Labels
stage: needs investigating
Someone from Cypress needs to look at this
stale
no activity on this issue for a long period
topic: iframes
Current behavior
I have three pages:
portal.html, child.html, app.html
.In page
portal.html
, there is an iframe for loading pagechild.html
, with display: noneWhen page
child.html
is loaded, it creates a new iframe in top window(portal.html) for loading page app.html, and delete the pre iframe.Then I visit
![image](https://private-user-images.githubusercontent.com/42016535/321057135-ad5fcd21-c3fb-4e6a-b8df-f63e890d7136.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MjU4OTksIm5iZiI6MTczODgyNTU5OSwicGF0aCI6Ii80MjAxNjUzNS8zMjEwNTcxMzUtYWQ1ZmNkMjEtYzNmYi00ZTZhLWI4ZGYtZjYzZTg5MGQ3MTM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA3MDYzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxNjA1YmFhZDQ0NGY4OTgwZjQzYjM4YzU3OGVkYjRiOTY1NGRkZGY1NjgwYjVkYTg4MjBkNDM4NWY3ZmY1MTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.iLKgOL2dWO78ClbAacrkPShrTJNtCQkSXJlC4sg9hQY)
portal.html
by cypress, and get the iframe element, I got this result:The deleted old iframe(for load page child.html) can be found, but the new iframe which is created dynamically cann't be found.
Desired behavior
This is the result, visited by chrome:
![image](https://private-user-images.githubusercontent.com/42016535/321056878-eb44e547-0c10-4da5-b8c9-da1f941b3ad4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MjU4OTksIm5iZiI6MTczODgyNTU5OSwicGF0aCI6Ii80MjAxNjUzNS8zMjEwNTY4NzgtZWI0NGU1NDctMGMxMC00ZGE1LWI4YzktZGExZjk0MWIzYWQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA3MDYzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwODM2ZjczYzk4OTYwY2EyNDVkYzcyMDk0MDMzYmEwOTY5NDllNDVlZmI5MDEyMGY1NGQxNDVlNGU0OTYyY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.D3ag2vCce-f1LHveICGgvrMH9obGxTd8ROul-u4tEx4)
Test code to reproduce
portal.html:
child.html:
app.html:
test code:
Cypress Version
6.3.0
Node version
v10.24.1
Operating System
linux
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: