S
S
Soul12021-10-27 20:38:59
Python
Soul1, 2021-10-27 20:38:59

How to wait for a page to load in Selenium if its address is unknown?

I found the WebDriverWait method, but it requires a specific page address, and it is unknown. And implicitly_wait and time.sleep only wait for a fixed amount of time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Gamovich, 2021-10-27
@Soul1

Look here

T
taktik, 2021-10-27
@taktik

There is no need to explicitly check that the page has loaded. You can immediately interact with the elements of this page, and if the test fails, then the page has not loaded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question