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

Element not found Assertion errror #4330

Open
srirambsetec10 opened this issue Dec 17, 2024 · 0 comments
Open

Element not found Assertion errror #4330

srirambsetec10 opened this issue Dec 17, 2024 · 0 comments

Comments

@srirambsetec10
Copy link

Description of the bug/issue

image
image
I try to check addPostPage.assert.not.visible function if try to check not visible or un visible element it showing ,element could not be located
<< We are try to element is not visible then how user will check element not visible

Steps to reproduce

browser.assert.not.visible()
<< if using this from nightwatch it showing element could not be located ,

Sample test

Then('the post creation form should close',async function () {
    const addPostPage= await browser.page.addPostPage();
    await browser.pause(2200)
   try {
    return  await addPostPage.assert.not.visible('@postForm');
  } catch (error) {console.log();
  }
});

Command to run

nightwatch

Verbose Output

No response

Nightwatch Configuration

No response

Nightwatch.js Version

3.9.0

Node Version

20

Browser

chrome:131.0.6778.140

Operating System

Windows 11 ,10

Additional Information

No response

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

No branches or pull requests

1 participant