# Tests on Angular application not stable

**URL:** https://forum.robotframework.org/t/tests-on-angular-application-not-stable/5152
**Category:** Browser
**Created:** [9 January 2023 10:08 UTC](https://forum.robotframework.org/t/tests-on-angular-application-not-stable/5152 "2023-01-09T10:08:42Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)
#### Post date: [9 January 2023 13:06 UTC](https://forum.robotframework.org/t/tests-on-angular-application-not-stable/5152/4 "2023-01-09T13:06:50Z")

</div>

Hi Björn,

well this answer was for SeleniumLibrary [Wait for complete page load in robot framework - #2 by damies13](https://forum.robotframework.org/t/wait-for-complete-page-load-in-robot-framework/4597/2), however the same thing could probably be achieved with Browser Library using [Execute JavaScript](https://marketsquare.github.io/robotframework-browser/Browser.html#Execute%20JavaScript) or [Evaluate JavaScript](https://marketsquare.github.io/robotframework-browser/Browser.html#Evaluate%20JavaScript), or even [Wait For Function](https://marketsquare.github.io/robotframework-browser/Browser.html#Wait%20For%20Function), i’m not sure which is better for this, but I would try `Wait For Function` first. Something like this I’d guess:

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

```

or

```python
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.

---

_[View the full topic](https://forum.robotframework.org/t/tests-on-angular-application-not-stable/5152)._
