Class WebElementUtil
- java.lang.Object
-
- org.uitnet.testing.smartfwk.ui.core.utils.WebElementUtil
-
public class WebElementUtil extends Object
- Author:
- Madhav Krishna
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCssValue(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem, String pseudoElem, String cssPropertyName)Used to get the CSS property value when pseudoElement is specified like in CSS example below: .sampleCSS::after { background-color: #ffffff; } here "sampleCSS" is a CSS class name and ":after" is a pseudoElement.static StringgetElementText(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem)static StringgetElementText(SmartAppDriver appDriver, DOMObject domObject, int maxIterationsToLocateElements)static StringgetInputTextValue(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem)static StringgetInputTextValue(SmartAppDriver appDriver, DOMObject domObject, int maxIterationsToLocateElements)static booleanisElementDisabled(SmartAppDriver appDriver, DOMObject domObject)static booleanisElementDisabledButNotReadonly(SmartAppDriver appDriver, DOMObject domObject)static booleanisElementReadonly(SmartAppDriver appDriver, DOMObject domObject)static booleanisElementSelected(SmartAppDriver appDriver, DOMObject domObject)static booleanisElementVisible(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem)static booleanisElementVisible(SmartAppDriver appDriver, DOMObject domObject)
-
-
-
Method Detail
-
isElementDisabled
public static boolean isElementDisabled(SmartAppDriver appDriver, DOMObject domObject)
-
isElementDisabledButNotReadonly
public static boolean isElementDisabledButNotReadonly(SmartAppDriver appDriver, DOMObject domObject)
-
isElementReadonly
public static boolean isElementReadonly(SmartAppDriver appDriver, DOMObject domObject)
-
isElementVisible
public static boolean isElementVisible(SmartAppDriver appDriver, DOMObject domObject)
-
isElementVisible
public static boolean isElementVisible(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem)
-
isElementSelected
public static boolean isElementSelected(SmartAppDriver appDriver, DOMObject domObject)
-
getElementText
public static String getElementText(SmartAppDriver appDriver, DOMObject domObject, int maxIterationsToLocateElements)
-
getElementText
public static String getElementText(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem)
-
getInputTextValue
public static String getInputTextValue(SmartAppDriver appDriver, DOMObject domObject, int maxIterationsToLocateElements)
-
getInputTextValue
public static String getInputTextValue(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem)
-
getCssValue
public static String getCssValue(SmartAppDriver appDriver, org.openqa.selenium.WebElement webElem, String pseudoElem, String cssPropertyName)
Used to get the CSS property value when pseudoElement is specified like in CSS example below: .sampleCSS::after { background-color: #ffffff; } here "sampleCSS" is a CSS class name and ":after" is a pseudoElement.- Parameters:
appDriver-webElem-pseudoElem-cssPropertyName-- Returns:
- the CSS property value for the pseudo element.
-
-