Package com.qcefast.frameworkSpecific
Class FastElementProperties
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.lang.String>
-
- com.qcefast.frameworkSpecific.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 locateFastElement
s- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FastElementProperties()
-
Method Summary
Modifier and Type Method Description org.openqa.selenium.By
getCssBy()
Returns aBy
that is build using a constructed cssString created from the properties of this classjava.lang.String
getCssString()
Converts attributes of an object into a string that will be used for cssSelectorsorg.openqa.selenium.By
getXpathBy(java.util.Properties properties)
Returns aBy
that is build using a relative xPath created from the properties of this classjava.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
-
-
-
-
Method Detail
-
getXpathBy
public org.openqa.selenium.By getXpathBy(java.util.Properties properties)
Returns aBy
that is build using a relative xPath created from the properties of this class- Parameters:
properties
- Properties that will be turned in aBy.xpath(String)
- Returns:
- A
By.xpath(String)
- Since:
- 1.0.0
-
getCssBy
public org.openqa.selenium.By getCssBy()
Returns aBy
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
-
-