-
Notifications
You must be signed in to change notification settings - Fork 32
waitForText default time #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes there is, what you see in the output:
is the variabile ( this.check(elementSelector, checker, (result, loadedTimeInMilliseconds) => {
if (result) {
var message = `waitForText: ${elementSelector}. Expression was true after ${loadedTimeInMilliseconds - this.startTimeInMilliseconds} ms.`;
} else {
var message = `waitForText: ${elementSelector}. Expression wasn't true in ${timeoutInMilliseconds} ms.`;
}
this.client.assertion(result, 'expression false', 'expression true', message, true);
return this.emit('complete');
}, timeoutInMilliseconds); Can you share your code? |
this was the code before i add my default waitForConditionTiemout
there i get the error,
it works fine for me |
Does it work if you're not using page objects? |
yes without page object it is working i called now this
it is the same selector and the first (with out page object call) is working and the second not |
is there a defautl time set in waitForText() function?
if i dont set a max time i get this error
Expression wasn't true in 10000 ms. - expected "expression true" but got: expression false
if i set a max time to 10000
the element was found after 49ms
The text was updated successfully, but these errors were encountered: