I need your advice about an issue for my RobotFramework test.
When I try to run my test (verify the displayed data), RF doesn’t find the data because this data are loaded once the page is fully displayed (As i know, it’s the Angular behavior).
Here is an example :
Element Should Contain //h1/span[@class=“type_bien”] Appartement T3
The RF response is “Element ‘//h1/span[@class=“type_bien”]’ should have contained text ‘Appartement T3’ but its text was ‘T3’”.
Indeeed, when I delete the local storage et refresh the page, the locator contains “T3”. After un another refresh, the data “Appartement T3” is displayed.
My questions :
Is it the good way to work with Angular for the test ?
If Yes, how can I verify data ? Add an another step which refresh the page ?
Thanks for your help !