question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add isVisible() assertion

See original GitHub issue

Would there be any room for an isVisible/isNotVisible assertion? Obviously you don’t want to add every possible assertion under the sun to the library but if you think it’s something that would be beneficial, I’d be happy to work on it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Turbo87commented, Feb 14, 2018

hmm, interesting. I’m certainly open to experimenting with it in a PR, but I can’t guarantee that we’ll merge it in the end 😃

0reactions
scalvertcommented, Mar 15, 2018

I also think this is very useful, and helps further ‘fill in’ the API. Currently, I don’t have a reasonable replacement or native DOM equivalent for .is(':visible'), which is used in a few places in my app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add isVisible() assertion #52 - mainmatter/qunit-dom - GitHub
Would there be any room for an isVisible / isNotVisible assertion? Obviously you don't want to add every possible assertion under the sun...
Read more >
How to assert that web element is visible on the screen using ...
In Serenity/JS v2 the assertions like isVisible() work with the Targets, so there's no need to extract the WebElement any more. I'd suggest...
Read more >
Selenium Assertion Examples - Practical Applications In Projects
isDisplayed() – This is used to verify the presence of an element in the web page. It returns a true value if the...
Read more >
isVisible | API Reference - Nightwatch.js
.isVisible(). Determine if an element is currently displayed. Uses elementIdDisplayed protocol command. Syntax .
Read more >
Multiple elements and should('be.visible') assertion - YouTube
In this example, I show how the assertion should('be.visible') passes in the case of multiple elements when only some of them are visible....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found