I’m working on an automation that pulls account numbers from excel and uses them to update accounts within a webpage. I’m running into an issue as a number of different warnings can pop up as well as errors. For an error, I want it to skip the record and close. For a warning, I want it to select the checkbox and hit save. When I try to add if statements, it presents if statements for only excel related pages rather than the webpage. Any advice?
Attaching an image of an example for a warning message.
Have you tried an Element exists activity, to see if the element appears? The selector can aim at the Web page. Limit the time it looks for it (maybe not the full 30 seconds default)
The output is a Boolean for true or false, so your following IF statement can just use that bool_variable as the condition, and have it act accordingly.
Use “on appear element activity” or “Element Exists Activity”
It will return bool variable on bool output you can put if condition.
Its also suitable to skip or proceed records
Thank you! This was exactly what I needed. One more question… At times, one warning displays and other times several may display. Any thought on the best way to communicate that? Would you just add several element exists activities and write if/then statements off of that?
Thank you! This was exactly what I needed. One more question… At times, one warning displays and other times several may display. Any thought on the best way to communicate that? Would you just add several element exists activities?
@trentm If all the warning are coming in same place then you should use get text and then you can analyze what type of warning it is. If warning is coming in different place then use element exist for each possible case. Yes you can use multiple element exist
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.