Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pass error message from wait*() methods to until() #3983
Sorry but this breaks the compatibility with other methods. There are no thing like custom error messages in Codeception modules. Probably it's not a good thing, however, this is way it is now.
Inside our actions and assertions we try to generate error message based on action's name and its arguments. Inside
sprintf("waited for %d secs but element %s still not found", $secs, \Codeception\Util\Locator::humanReadableString($selector) );