I am trying to use RobotFramework Browser to run Front-End tests on a page that uses angular’s cdks for dynamically loaded content in form fields.
My issues are the following:
I am forced to use a sleep command after filling a form field for the content to load from the backend. This is rather inconsistent across differing network qualities. Is there a better way to solve this? I’ve tried using wait for load state network idle to no avail, as the form field doesn’t seem to recognize that I’ve finished with my input & am waiting for the backend content.
The selector seems unable to locate the dynamically generated drop down content using any kind of matching. As of now I have managed to get it to run using keyboard commands (arrow down/up). Is there a better way to do this that I’m missing?
AFAIK, angular’s state can be queried via javascript but i didn’t find the piece of js code to execute that. If you can find something, then you can add js extension that would wait for such state to happen. Just today i made something similar but for loading fonts that looks something like this;