Selenium iframe 下还有 #document,导致 switch_to frame 后,还是定位不到元素,求指导

杨漫步 · January 10, 2024 · Last by 杨漫步 replied at January 12, 2024 · 3132 hits

iframe
#document
-->

---> ---->
共收到 2 条回复 时间 点赞

建议贴一下 F12 看到的 dom 结构和你的代码

嗯好了,看错层级了。中间还有个 iframe

杨漫步 关闭了讨论 12 Jan 14:54
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up