空手道UI自动化-如何关闭位置津贴窗口(Chrome) [英] Karate-UI Automation - How to close Location allowance window (Chrome)

查看:70
本文介绍了空手道UI自动化-如何关闭位置津贴窗口(Chrome)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Karate-UI自动化软件.我在Chrome浏览器下运行测试方案.当我转到显示地图的页面(例如Mapbox)时,系统会通过允许"和拒绝"按钮询问用户有关位置津贴(屏幕截图)的信息.在场景步骤中是否有一些简单的技巧来确认/拒绝/关闭对话框? -在功能文件中.

I am using Karate-UI Automation Software. I run my test scenario under Chrome browser. When I go to page where map is displayed (e.g. Mapbox) user is asked about Location allowance (screenshot) with buttons Allow and Deny. Is there some easy trick to confirm/deny/close dialog in scenario step? - in feature file.

位置津贴

谢谢您的建议.

推荐答案

这是Chrome对话框,它不会影响测试流程,但会停留在该对话框中,并且有点恼人吗?对不起,我还没有找到抑制这种情况的方法.如果有人可以找到一种方法,那就太好了,我已经在这里尝试了所有标志,但是没有一个起作用: https://peter.sh/experiments/chromium-command-line-switches/

Is this the Chrome dialog that does not impact the flow of the test but just stays there and is somewhat irritating ? I'm sorry I haven't found a way to suppress that. Would be great if someone can find a way, I have tried all the flags here, but none of them worked: https://peter.sh/experiments/chromium-command-line-switches/

我们正在尝试空手道机器人处理其中一些用例,但这仍处于试验阶段.如果您使用此方法,我们需要人们尝试并提供修复程序-采用0.9.6.RC1,因为0.9.5存在一些问题.

We are experimenting with Karate-Robot to be able to handle some of these use-cases, but this is still experimental. We need people to try and contribute fixes, if you use this - take 0.9.6.RC1 because 0.9.5 has some issues.

最后,如果您遇到纯HTML的问题,请按照以下过程进行操作,以便我们可以根据需要尝试解决方案或增强空手道语法:

Finally if you are facing a problem with plain HTML, please follow this process so that we can try and figure a solution or enhance the Karate syntax if needed: https://github.com/intuit/karate/tree/develop/examples/ui-test

这篇关于空手道UI自动化-如何关闭位置津贴窗口(Chrome)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆