GS-11841 GS-11274 added checking for isDisplayed() as well