How can I wait for page to load completely (All UI elements becomes visible to user) and i want a dynamic approach as every page is different and i don't have a specific element(button/static text) to use for wait.
I tried app.waitForExistence(timeout: 10) which passes even before UI element becomes visible.