Skip to content
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

Fix waitUntil paramenter ordering; update waitUntil documentation; #3839

Merged
merged 1 commit into from Jul 31, 2023

Conversation

swrdfish
Copy link
Member

No description provided.

@github-actions
Copy link

Status

  • ❌ No modified files found in the types directory.
    Please make sure to include types for any changes you have made. Thank you!.

@@ -10,5 +10,9 @@ describe('demo tests using waitUntil element APIs', function() {
it('wait until element is enabled', function({element}) {
element('#weblogin').waitUntil('enabled');
});

it('wait until with custom message', function({element}) {
element('#weblogin').waitUntil('enabled', {message: 'elemento %s no era presente en %d ms'});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does the %s and %d do here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message supports two placeholders: %s for current selector and %d for the time (e.g. Element %s was not in the page for %d ms).

@AutomatedTester AutomatedTester merged commit 05ee135 into nightwatchjs:main Jul 31, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants