
Announcements
Hi Team,
I have web portal where if any mandatory field is missed then it gives popup to click on "OK" but when i use "press button on web page" or "click link on web page" that button is not getting captured. I tried to using these 2 actions from from UI category also but it is same. I also tried to inspect that element in the developer tools there i can not find this element.
Please help me to deal with this popup.
Most pop ups that just have okay will clear by pressing {Enter}.
I assume you are filling out a form or something and clicking “Submit” and it’s yelling at you that a field is missing. When it doesn’t error out, where does it go next? Does it go to a new blank form, or does it go to the next page? The reason this is important is because you can use where it’s supposed to be to decide if a pop up may have appeared. For example, let’s say it is an application, and after clicking “Submit”, it goes to the next page and says “Thank you for completing your application.” Let’s call that message the %ThankYou% element. I would use this element as a trigger, and if the element doesn’t exist, I can naturally assume that a pop up has occurred, and trigger alternative procedures, in this case: Send Keys {Enter}. The whole thing looks like this.
‘ the actions you currently have to fill out the fields and click Submit
Wait for element %ThankYou% fail after 10 seconds (however long it should take to get to the next page, double that)
On Error , go to Subflow “Error_Submit” then
1) continue workflow (If this is attended, you could Display Message for the user to fix the discrepancy) or
2) Go to Label (if you want it to repopulate the fields with the same information (not sure how this would correct it, but may have to add additional logic here.)
In a new subflow called “Error_Submit”:
Send Keys {Enter}
Best of luck!