karate - 无法使用空手道框架 (UI) 处理 SAML 重定向的登录对话框
问题描述
无法使用空手道框架 (UI) 处理 SAML 重定向的登录弹出窗口
试过 * dialog(false) 并没有关闭弹出窗口。无法弄清楚如何做键盘 ESCAPE,因为 input('body', Key.ESCAPE) 也不起作用。欣赏是否有人有类似的问题并解决它。
解决方案
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.
推荐阅读
- dictionary - 如何在 Java 8 中使用方法引用进行 Map 合并?
- ruby - 使用 Logstash 和 Ruby 提取嵌套对象
- asp.net - ASP.NET MVC 5 掩码下载链接到 Amazon S3 资源
- php - Laravel 自定义异常
- sql-server - 将 WHERE 子句转换为 CASE 表达式
- ios - 如何解析字符串以获取测量值(与MeasurementFormatter相反)
- amazon-web-services - AWSDeploy 重新部署 ASP.NET WebAPI ELB 应用程序不起作用
- automapper - AutoMapper 如何映射 CamelCase 字典
到 PascalCase C# 对象 - python - python递归关系如何进行明确的循环并逐行打印所有结果
- python - 如何按属性值对字典进行排序?