I was trying to automate the UI testing of an application with Intern js.

But I am having a problem finding the way to wait until the page is fully loaded. After researching for a while, I found that pollUntil might be the solution I'm looking for but that too doesn't seem to work (maybe my implementation is wrong).

Currently my code doesn't wait at all. Can someone please help me with this?