简体   繁体   English

Katalon Studio:在Chrome浏览器偏好设置中抑制警报

[英]Katalon Studio: Suppressing Alerts in Chrome Preferences

I'm trying to UI Test Salesforce Lightning with Katalon Studio, and with manual attention, it works, because I am always able to dismiss the Alert that wants to send me notifications (a standard when Lightning is used). 我正在尝试使用Katalon Studio进行UI测试Salesforce Lightning,并且需要人工注意,因为我总是能够关闭要向我发送通知的警报(使用Lightning时的标准)。 The Dismiss/Accept alert Steps don't work as they don't recognize the alert as part of the Website, so I would need to suppress them via preferences. “关闭/接受”警报步骤不起作用,因为它们无法将警报识别为网站的一部分,因此我需要通过首选项来抑制它们。

I have found this chunk of code which I have tried to implement with a custom keyword, but to no avail. 我找到了我尝试使用自定义关键字实现的这段代码 ,但无济于事。 I also tried the firefox_profile way with a chrome_profile dictionary in the execution settings, putting the preference in the code chunk there, but that didn't help either. 我还尝试在执行设置中使用chrome_profile字典使用firefox_profile方式,将首选项放在代码块中,但这也无济于事。

I want to run Chrome headless with a Jenkins Job in the future and it seems I need to get this working somehow. 我希望将来能通过Jenkins Job无头运行Chrome,看来我需要以某种方式使它正常运行。 Any pointers? 有指针吗?

While the problem at hand has not been solved, I realized that Alerts that aren't triggered by the Website such as "wants to send you notifications" have no influence on the clickability of Elements beneath it and they are not seen by Katalon Studio therefore. 尽管当前的问题尚未解决,但我意识到未由网站触发的警报(例如“希望向您发送通知”)不会影响其下方元素的可点击性,因此Katalon Studio无法看到它们。 If it comes to it, you can best ignore them. 如果涉及到这一点,则最好忽略它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM