public class ElementHelper extends Object
| Constructor and Description |
|---|
ElementHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static int[] |
findMiddleOfElement(EnhancedBy target)
returns the center coordinates of the target element
|
protected static String |
getAttribute(EnhancedBy byValue,
int index,
String attribute)
gets specified attribute of the element based on index
|
protected static String |
getAttribute(EnhancedBy byValue,
String attribute)
gets specified attribute of the element
|
protected static org.openqa.selenium.Dimension |
getElementSize(EnhancedBy by)
returns element dimension
|
protected static boolean |
isAttributeContaining(EnhancedBy by,
String attribute,
String value)
returns true if element contains class value
|
protected static boolean |
isElementContainingClass(EnhancedBy by,
String value) |
protected static void |
setAttribute(EnhancedBy by,
String attribute,
String value)
sets attribute value of an element
|
protected static String getAttribute(EnhancedBy byValue, String attribute)
byValue - index - attribute - protected static String getAttribute(EnhancedBy byValue, int index, String attribute)
byValue - index - attribute - protected static boolean isElementContainingClass(EnhancedBy by, String value)
protected static boolean isAttributeContaining(EnhancedBy by, String attribute, String value)
by - classValue - protected static void setAttribute(EnhancedBy by, String attribute, String value)
by - attribute - value - protected static org.openqa.selenium.Dimension getElementSize(EnhancedBy by)
by - protected static int[] findMiddleOfElement(EnhancedBy target)
target - Copyright © 2019. All rights reserved.