Class StyleUtil
java.lang.Object
com.atlassian.crowd.pageobjects.utils.StyleUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isHidden
(com.atlassian.pageobjects.elements.PageElement element) Determines if an element is hidden using an inline "display: none;" declaration.static boolean
isVisible
(com.atlassian.pageobjects.elements.PageElement element) Determines if an element wasn't hidden using an inline "display: none;" declaration.
-
Method Details
-
isHidden
public static boolean isHidden(com.atlassian.pageobjects.elements.PageElement element) Determines if an element is hidden using an inline "display: none;" declaration. This mechanism is used by jQuery's show/hide functions. This method of determining visibility should be preferred toPageElement.isVisible()
if possible as isVisible tries to determine if the element is visible to the end user which can be flaky- Parameters:
element
- the element which should have its visibility ascertained- Returns:
- true if the element was hidden using an inline style, false otherwise
-
isVisible
public static boolean isVisible(com.atlassian.pageobjects.elements.PageElement element) Determines if an element wasn't hidden using an inline "display: none;" declaration.- Parameters:
element
- the element which should have its visibility ascertained- Returns:
- true if the element was not hidden using an inline style, false otherwise
-