Hi UiPath Community,
currently, we have the following problem regarding Browser UI Automation & Testing.
The process input is a list of Order Numbers. Each Order Number refers to one specific electronic part (e.g. a microchip).
For each Order Number, the process should type in the number on a set amount of different web-pages (part-vendor websites). Once typed in, the according electronic part will be displayed and there are three options regarding the state of the part:
- in stock
- not in stock until xx.xx.xxx (date)
- not in stock
We need a way to consistently test our workflows. Meaning that, for example, with part number 1234, on web page https://www.arrow.com/, the result of the workflow must be “In Stock” (simple unit testing).
Now, the problem is that the state of the parts constantly changes. One minute the part is available, then after half an hour its out of stock. So there is no way for us to write a fixed set of test cases, because we cannot determine the current state of the part, and thus do not know what the correct result of the test case should be.
We thought about saving the web page when it is in a certain state (with “Save As → Web Page, Complete”), but on certain pages there are images missing, check boxes and input fields do not work, etc…
We’ve tried this approach with several web browsers (Firefox, Chrome, Edge).
Is there a way to save a web page when its in a certain state (“Mock” it if you wish), so that it contains every part of the page and also maintains its functionality, so it is properly accessible by the robot?
Or is there any other way how you would approach this problem?
Thank you in advance for the help!