首页 > 解决方案 > 无法使用空手道框架 (UI) 处理 SAML 重定向的登录对话框

问题描述

无法使用空手道框架 (UI) 处理 SAML 重定向的登录弹出窗口

试过 * dialog(false) 并没有关闭弹出窗口。无法弄清楚如何做键盘 ESCAPE,因为 input('body', Key.ESCAPE) 也不起作用。欣赏是否有人有类似的问题并解决它。

https://i.stack.imgur.com/WTJvG.png

标签: karate

解决方案


UI testing is hard. In these cases, the recommendation is that you sign-in using the API and then navigate to the page you want to test, by-passing any UI complexity: https://github.com/intuit/karate/tree/master/karate-core#hybrid-tests

Else you can try other options, such as switching tabs: How I can open and close next/new tab in active browser session in Karate UI Automation

or JS: https://stackoverflow.com/a/60800181/143475

See if you can contribute code to Karate or you can look for another framework.


推荐阅读