Home
Sign Up
Sign In
V2EX
›
问与答
selenium 无法 find 到新加载的窗口的问题
luboyan
·
Aug 9, 2022
· 1886 views
This topic created in 1548 days ago, the information mentioned may be changed or developed.
问题:selenium 无法 find 到新加载的窗口元素,已经排除点击后新出现的这个不是 frame.就是点击这个就会新增一个 div ,
但是在 selenium 自动化中是选定不到这个里面的东西,并且是在程序中断后才会出现这个弹窗,在等待元素出现的时候,这个弹窗是一直都不会出现的
求大佬各给处理的方向,真没思路了
Selenium
弹窗
href
find
3 replies
sparkssssssss
Aug 9, 2022
1
我一般的做法是打印出来 page_resource 看看.不过自从用了 Selenium IDE 扩展后,啥问题都解决了.
luboyan
OP
Aug 9, 2022
2
@
coolloves
我直接用 Selenium IDE 录取到,再执行也不行
luboyan
OP
Aug 9, 2022
3
解决了,尝试了一万种办法后,原来是 find 的速度大于载入的速度,添加 wait 就正常了
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1558 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 23:29
·
PVG 07:29
·
LAX 15:29
·
JFK 18:29
♥ Do have faith in what you're doing.
❯