I’m building a test automation for a business application that needs to validate the screen layout (currently the bot is doing field validations) every time the bot logs in, regardless of the field values Bot has to validate screen layout.
Example: In image 1 layout 3 categories are placed as 1,2,3 but in image 2 it changes to 2,1,3. In this case the bot should validate the screen layout and throw an exception or fail the test case.
Hello!
That is a great question - I havent tried nativaly with UiPath.
I am guessing you are looking for Visual Testing - there are a few platforms specialized in that, like Percy ( Visual testing and review platform | Percy by BrowserStack)
You might be able to do something a little more simplistic by comparing 2 screenshots - one used as a “golden image” on how the website should look, and another one took at runtime to validate if the website layout has changed. The forum seems to have several different approaches - maybe try this one? Comparing Images - Help / Studio - UiPath Community Forum
Image comparison will be very brittle. It will be affected by screen resolution and any minor changes to the text or images on the whole page. I believe this would lead to a lot of failed tests that you don’t want.
In general, UiPath is more geared toward functional tests. Having said that, you might be able to use Computer Vision to verify that something is visible within a designated area of the app.