Class FastElementProperties

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.String>

    public class FastElementProperties
    extends java.util.HashMap<java.lang.String,​java.lang.String>
    Used to store properties that will be used to locate FastElements
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      Modifier and Type Method Description
      org.openqa.selenium.By getCssBy()
      Returns a By that is build using a constructed cssString created from the properties of this class
      java.lang.String getCssString()
      Converts attributes of an object into a string that will be used for cssSelectors
      org.openqa.selenium.By getXpathBy​(java.util.Properties properties)
      Returns a By that is build using a relative xPath created from the properties of this class
      java.lang.String getXpathString()
      Converts attributes of an object into a string that will be used for xpath selectors
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Constructor Detail

      • FastElementProperties

        public FastElementProperties()
    • Method Detail

      • getXpathBy

        public org.openqa.selenium.By getXpathBy​(java.util.Properties properties)
        Returns a By that is build using a relative xPath created from the properties of this class
        Parameters:
        properties - Properties that will be turned in a By.xpath(String)
        Returns:
        A By.xpath(String)
        Since:
        1.0.0
      • getCssBy

        public org.openqa.selenium.By getCssBy()
        Returns a By that is build using a constructed cssString created from the properties of this class
        Returns:
        A By.cssSelector(String)
        Since:
        1.0.0
      • getXpathString

        public java.lang.String getXpathString()
        Converts attributes of an object into a string that will be used for xpath selectors
        Returns:
        The xpath string
        Since:
        1.0.0
      • getCssString

        public java.lang.String getCssString()
        Converts attributes of an object into a string that will be used for cssSelectors
        Returns:
        The cssSelector string
        Since:
        1.0.0