Intern Waitforcondition

intern

// Intern - Functional Testing - waitForCondition:

this.remote
  .get(require.toUrl('./SomePage.html'))
  .waitForCondition('ready', 5000)
  ...
  ...;

In the above code we use the waitForCondition method, which waits until the 
named global variable 'ready' become truthy before continuing with execution, 
and errors out if the second parameter (optional, in this case, 5000 milli- 
seconds) is exceeded.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License