无法识别并跳转到后端返回的iframe弹出框,会等待超时



如上两张截图: 图一 是后端返回的iframe,会占据css的顶层,当uirecorder录制完成并回放时,会报图2的错误,等待整个iframe出现并跳转,但是无法识别这个iframe,所以会等待超时报错并退出(图二).图三是通过python+selenium方式很轻松就可以操作iframe了 尝试解决方案:
- driver.switchFrame(null).sleep(3000). 增加sleep默认等待30秒,无效超时
- 通过drive.eval方式调用js脚本尝试跳转, 无效
- 使用原生python+selenium执行跳转 ---成功
复现方式: 可以使用远程工具,因为是内部系统,没有外网访问权限,可以随时通过微信:zhu06101030610联系到我,或者阿里钉钉群里朱利斌
This is the translated issue:
Does not recognize the pop-up box and jump to the iframe returned by the backend will wait for a timeout
! [Backend response] (https://user-images.githubusercontent.com/38162020/81242897-ea36fb80-9040-11ea-9ebc-778456baff82.png)
! [Iframe not recognize] (https://user-images.githubusercontent.com/38162020/81242886-e0ad9380-9040-11ea-84fc-4a4c11b4f926.png)
As two screenshots: Figure One is returned by the backend iframe, will occupy the top floor css when uirecorder finished recording and playback, an error will be reported Figure 2, waiting for the entire iframe appear and jump, but did not recognize the iframe, it will wait timeout error and exit (Figure II). Try the solution: 1. driver.switchFrame (null) .sleep (3000). The default increased sleep wait 30 seconds, a timeout is invalid 2. Try jumping call js script by drive.eval way invalid 3. Use the native python + selenium successful execution Jump ---
Reproducibly: You can use remote tools, because it is within the system, there is no external network access, you can at any time through micro letter: zhu06101030610 to contact me, or Ali nail the group Zhu Libin