You can check the visibility of an element using the assertVisible .
The code:
Command = assertVisible
Target = Locator Value
Returns true if the specified element is visible, false otherwise
Determines whether the specified item is visible. An element can be rendered invisible by setting the CSS visibility property to hidden or the display property to none, either for the element itself or for one if its ancestors. This method will not work if the item is missing.
Manigandan
source share