playwright/test/assets/frames/nested-frames.html

31 lines
595 B
HTML
Raw Normal View History

2019-11-19 05:18:28 +03:00
<style>
body {
display: flex;
2019-12-07 02:10:30 +03:00
height: 500px;
margin: 8px;
2019-11-19 05:18:28 +03:00
}
body iframe {
flex-grow: 1;
flex-shrink: 1;
2019-12-07 02:10:30 +03:00
border: 0;
background-color: green;
2019-11-19 05:18:28 +03:00
}
2019-12-07 02:10:30 +03:00
2019-11-19 05:18:28 +03:00
::-webkit-scrollbar{
display: none;
}
</style>
<script>
async function attachFrame(frameId, url) {
var frame = document.createElement('iframe');
frame.src = url;
frame.id = frameId;
document.body.appendChild(frame);
await new Promise(x => frame.onload = x);
return 'kazakh';
}
</script>
<iframe src='./two-frames.html' name='2frames'></iframe>
<iframe src='./frame.html' name='aframe'></iframe>