{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/1737","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/1737/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/1737/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/1737/events","html_url":"https://github.com/cypress-io/cypress/issues/1737","id":324377197,"number":1737,"title":"Does Cypress has analogue to Selenium's WebElement.isDisplayed?","user":{"login":"b-ponomarenko","id":9141542,"avatar_url":"https://avatars3.githubusercontent.com/u/9141542?v=4","gravatar_id":"","url":"https://api.github.com/users/b-ponomarenko","html_url":"https://github.com/b-ponomarenko","followers_url":"https://api.github.com/users/b-ponomarenko/followers","following_url":"https://api.github.com/users/b-ponomarenko/following{/other_user}","gists_url":"https://api.github.com/users/b-ponomarenko/gists{/gist_id}","starred_url":"https://api.github.com/users/b-ponomarenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-ponomarenko/subscriptions","organizations_url":"https://api.github.com/users/b-ponomarenko/orgs","repos_url":"https://api.github.com/users/b-ponomarenko/repos","events_url":"https://api.github.com/users/b-ponomarenko/events{/privacy}","received_events_url":"https://api.github.com/users/b-ponomarenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-18T11:42:22Z","updated_at":"2018-05-18T13:52:05Z","closed_at":null,"author_association":"NONE","body":"In many cases we need to check if element displayed (is visible in viewport). Selenium has method [isDisplayed](https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebElement.html#isDisplayed--) method for it. Does Cypress has same method or API?\r\n"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/390214025","html_url":"https://github.com/cypress-io/cypress/issues/1737#issuecomment-390214025","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/1737","id":390214025,"user":{"login":"chrisbreiding","id":1157043,"avatar_url":"https://avatars1.githubusercontent.com/u/1157043?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisbreiding","html_url":"https://github.com/chrisbreiding","followers_url":"https://api.github.com/users/chrisbreiding/followers","following_url":"https://api.github.com/users/chrisbreiding/following{/other_user}","gists_url":"https://api.github.com/users/chrisbreiding/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisbreiding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisbreiding/subscriptions","organizations_url":"https://api.github.com/users/chrisbreiding/orgs","repos_url":"https://api.github.com/users/chrisbreiding/repos","events_url":"https://api.github.com/users/chrisbreiding/events{/privacy}","received_events_url":"https://api.github.com/users/chrisbreiding/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T13:52:05Z","updated_at":"2018-05-18T13:52:05Z","author_association":"COLLABORATOR","body":"You can use `.should('be.visible')` to test if an element is visible. Note that it doesn't fail if the element is outside the viewport. It's really an assertion for whether the element is visible or could be visible to the user with scrolling. There's some [discussion about that here](https://github.com/cypress-io/cypress/issues/877). \r\n"}}
{"actor":{"display_login":"chrisbreiding"}}