So fair so good, this code works very nice. But if the login was not successful I want an else case, where I can do some stuff. But the Callback from t.waitForCQ('viewport', function(textfield) { }); fires only when the the Element was found. Is there actually a posibility to catch such else cases, if the element is not found?
* The Error which is thrown is not transparent: Timeout while waiting for conditionFailed assertion [waitFor]
Condition was not fullfilled during 10000ms. Which an else case I would throw an error my self like "Login was not succesfull", what is easly to understand.
* The QA-Guy left to me want this feature
* I think this would be a nice feature, too. Because we can write with it more complexe tests and have better understanding of the error messages (see point 1).
* The waitFor error message is already improved, coming in next version.
* Ask him why?
* See #1. In next version error msg will say: "Waited too long for Component Query: viewport to appear." If you double click the failed line, the source code line will be highlighted