Does anyone have a good method for checking if an element is visible using Protractor? Here's what I've tried:
element.isPresent().then(result=>{
expect(result).toBeFalsy();
});
This works well, but I want to specifically check if the element is visible.
If I use:
element.isDisplayed().then(result=>{
expect(result).toBeFalsy();
});
The isDisplayed method returns Failed: No element found using locator How can I accurately determine if an element is not visible on the page?