Hi All,
I recently started to use rf-browser library. I wonder if there is some way how to wait until network is silent before action.
For selenium we were using ‘Event firing webdriver’ that was doing before_find hook with:
WebDriverWait(
driver, local_timeout, poll_frq,
ignored_exceptions=[TimeoutException]).until(
lambda x: driver.execute_script(
"return angular.element(document).injector().get('$http')"
".pendingRequests.length === 0"))
So this was waiting before any action to network become silent.
I found out that, playwright/browser does not do this because while testing I found that there was ‘loading gear’ on my screen and browser was doing its work.
Problem is that our app do not blank/disable screen while it is loading, It just simple shows small rotating gear at the top left corner, so the automatic waiting of browser/playwright find that element is ready to work with.
Is there any way how to run this waiting automatically before each element interaction?
Thanks