Class HtmlUtils


  • public class HtmlUtils
    extends Object
    Created by Roman Iovlev on 26.09.2019 Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev
    • Constructor Detail

      • HtmlUtils

        public HtmlUtils()
    • 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 find
        el - 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 find
        el - 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 find
        el - WebElement to get attribute from
        Returns:
        int attribute value
      • getFloat

        public static float getFloat​(String value)