I just started using Protractor to write tests. I am wondering what the difference is between the isPresent() and isDisplayed() methods.
isPresent()
isDisplayed()
The API definitions
isPresent
isDisplayed
So... in what cases are they different?
isPresent is true if element exists in a page (in DOM), but can be hidden (display: none in css) isDisplayed is true only if isPresent is true and element is visible
1.4m articles
1.4m replys
5 comments
57.0k users