简体   繁体   English

单击 UiPath 中的保存按钮后如何识别警告框或错误消息框?

[英]How to identify alert box or error message box after clicking on save button in the UiPath?

使用 UiPath 技术我想知道如何在单击保存后捕获已保存或错误消息。

There are different ways to solve your issue.不同的方法可以解决您的问题。

I would recommend you to use the Element exists activity.我建议您使用元素存在活动。

So after your Click activity you add the Element exists activity:因此,在您的Click活动之后,您添加元素存在活动:

  • set the Selector property of the selector of the message box设置消息框选择器的Selector属性
  • set the Timeout amount to about 3000, this means it waits up to 3 seconds超时量设置为大约 3000,这意味着它最多等待 3 秒
  • under Output -> Exists you create a variable, let's call it "IsMessageBoxShown"在 Output -> Exists 下创建一个变量,我们称之为“IsMessageBoxShown”
  • now check this variable with the If activity现在使用If活动检查此变量
  • so in the If activity set IsMessageBoxShown as Condition, in the yes Block you now can set all the things you need when a message box is open, and on the other way you can do the other things因此,在If活动中将IsMessageBoxShown设置为 Condition,在yes 块中,您现在可以设置消息框打开时所需的所有内容,另一方面您可以执行其他操作

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

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