Package com.epam.jdi.light.ui.html
Class HtmlUtils
- java.lang.Object
-
- com.epam.jdi.light.ui.html.HtmlUtils
-
public class HtmlUtils extends Object
Created by Roman Iovlev on 26.09.2019 Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev
-
-
Constructor Summary
Constructors Constructor Description HtmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetDouble(String value)static doublegetDouble(String attr, org.openqa.selenium.WebElement el)Gets attribute and casts it to doublestatic doublegetDouble(String attr, org.openqa.selenium.WebElement el, double defaultValue)static floatgetFloat(String value)static floatgetFloat(String attr, org.openqa.selenium.WebElement el)Gets attribute and casts it to floatstatic intgetInt(String value)static intgetInt(String attr, org.openqa.selenium.WebElement el)Gets attribute and casts it to int
-
-
-
Method Detail
-
getInt
public static int getInt(String attr, org.openqa.selenium.WebElement el)
Gets attribute and casts it to int- Parameters:
attr- String - attribute to findel- WebElement to get attribute from- Returns:
- int attribute value
-
getInt
public static int getInt(String value)
-
getDouble
public static double getDouble(String attr, org.openqa.selenium.WebElement el)
Gets attribute and casts it to double- Parameters:
attr- String - attribute to findel- WebElement to get attribute from- Returns:
- int attribute value
-
getDouble
public static double getDouble(String value)
-
getDouble
public static double getDouble(String attr, org.openqa.selenium.WebElement el, double defaultValue)
-
getFloat
public static float getFloat(String attr, org.openqa.selenium.WebElement el)
Gets attribute and casts it to float- Parameters:
attr- String - attribute to findel- WebElement to get attribute from- Returns:
- int attribute value
-
getFloat
public static float getFloat(String value)
-
-