title: Exit from wait when UI is loaded
body: <p><strong>Hello Experts.</strong></p>
  <p><strong>Problem facing for a Test Execution purpose.</strong></p>
  <p>Firstly, if the solution of my problem exist, you can give me link and i am seeking apology for not searching thoroughly in internet. After all, i am learning with your help.</p>
  <p><strong>Used Code:</strong></p>
  <p>I am using below source code in <strong>typescript</strong>:</p>
  <pre><code>await new loadUI('Login Page');//loads the UI
  
  //wait to load the UI
  await new Promise(res =&gt; {
    setTimeout(res, 60000);
  });
  </code></pre>
  <p>Here, I am waiting for <strong>1 min</strong> to load the UI.</p>
  <p><strong>Problem:</strong></p>
  <p>Here, whenever the UI loads, it waits for 1 min. If it loads after 30 seconds, it waits for 1 min.</p>
  <p><strong>Looking for solution:</strong></p>
  <p>Now i am looking for a solution so that when the UI loads, it exits from wait. No concrete waiting for 1 min.</p>
  <p>Thanks in advance.</p>