I am trying to check if web page is loaded completed or not (i.e. checking that all the control is loaded) in selenium.
I tried below code:
new WebDr
Something like this should work (please excuse the python in a java answer):
idle = driver.execute_async_script(""" window.requestIdleCallback(() => { arguments[0](true) }) """)
This should block until the event loop is idle which means all assets should be loaded.