简体   繁体   中英

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). 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.

I want to run Chrome headless with a Jenkins Job in the future and it seems I need to get this working somehow. 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. If it comes to it, you can best ignore them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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