# Is an event fired when the backend is done processing?

**URL:** <https://community.novulo.com/t/is-an-event-fired-when-the-backend-is-done-processing/113>\
**Category:** \[Q&A\] General\
**Created:** [April 23, 2024, 8:20am UTC](https://community.novulo.com/t/is-an-event-fired-when-the-backend-is-done-processing/113 "2024-04-23T08:20:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![G.Hammil](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@G.Hammil](https://community.novulo.com/u/G.Hammil)\
**Post date:** [April 23, 2024, 8:20am UTC](https://community.novulo.com/t/is-an-event-fired-when-the-backend-is-done-processing/113/1 "2024-04-23T08:20:56Z")

</div>

I am a software tester tasked with created automated test cases for our application in Novulo. I am using Playwright to do so, and one stumbling point that I have come across is that I currently need to build in hard-coded wait statements because processes on the back end can cause changes to the front end as a response to filling in a field or clicking a button.

Playwright offers the ability to wait for an event or load state (DomContentLoaded for example) to be fired, which would create a more stable and quicker testcase.

Does Novulo emit an event or state change when the back end is done processing?

---

<div class="post-metadata">

**Author:** ![SRvdB](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@SRvdB](https://community.novulo.com/u/SRvdB)\
**Post date:** [April 23, 2024, 11:42am UTC](https://community.novulo.com/t/is-an-event-fired-when-the-backend-is-done-processing/113/2 "2024-04-23T11:42:24Z")

</div>

Hello G.Hammil,  
I am not that familiar with Playwright, but have dabbled in Selenium. When it comes to most websites that use Novulo’s backend, usually whenever an action (e.g. a process) is active, whatever you would want to press is mostly obscured by for example a loading bar / spinner.

Sleeps / waits are always a possibility, but I agree, its not the best way to do so.

Depending on if you have a ‘timer’ set, so within set.amount.of.time, attempt to click a button, one might opt for things such as :

‘is element visible’  
‘is element enabled’  
‘is element clickable’

or use Javascript to assess whether or not something is still actively doing something, although I am not sure if Playwright offers that.

Another way might be using the Playwright CRX chrome extension, that offers recording of the user’s actions to turn it into a script and compare with the script you are making.

Hope this helps a bit, if not, can you perhaps give a bit more details on what situation you’re facing?

Kind regards,
