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