Tests on Angular application not stable

Hi Björn,

well this answer was for SeleniumLibrary Wait for complete page load in robot framework - #2 by damies13, however the same thing could probably be achieved with Browser Library using Execute JavaScript or Evaluate JavaScript, or even Wait For Function, i’m not sure which is better for this, but I would try Wait For Function first. Something like this I’d guess:

Wait For Function    return document.readyState == "complete"

or

Wait For Function    return document.readyState == "complete"    //html

I guess you’ll need to play with it and find out, I’ve never done this with Browser Library.

Hope that helps,

Dave.

1 Like