V
V
Vadim Ushakov2021-11-05 02:06:02
selenium
Vadim Ushakov, 2021-11-05 02:06:02

Is it possible to get the browser page loading icon status?

Is it possible to get the browser page loading icon status?

KubI145.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-11-05
@Nightmare1

The icon changes to a spinner by the browser when the page is loaded (as well as objects that require loading, such as scripts, images and frames).
You can be sure that the spinner is spinning if . However, if something is loaded later, then, alas, there is no way (reliably) to find out about this, because this behavior is purely a front-end decision of browsers and is not documented anywhere. You can make it spin whenever you want by adding and removing an "eternal loading" iframe. But it's easier to just change the favicon as Aleksey Yarkov pointed out . document.readyState !== 'complete'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question