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

puppeteer模拟登录多层嵌套iframe的登录页 #105

Open
lizhongzhen11 opened this issue Mar 22, 2021 · 0 comments
Open

puppeteer模拟登录多层嵌套iframe的登录页 #105

lizhongzhen11 opened this issue Mar 22, 2021 · 0 comments

Comments

@lizhongzhen11
Copy link
Owner

多层嵌套的iframe,我原以为 await page.waitFor('iframe'),然后一路 waitFor 下去就好了,但实际上不行,因为虽然一路 waitFor 的确能爬到最终的登录页,但是调用 frame3.type() 时发现怎么也没用,搞了两小时,最后请同事帮忙看了下,同事在 await page.waitFor('iframe') 前面加了个 await page.waitFor(5000) 就好了。。。。。。

可能是因为多层嵌套的 iframe 加载太慢了,但是很奇怪啊,await page.waitFor('iframe') 不是等你加载完嘛,不熟,赶鸭子上架踩坑了

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

1 participant