Package com.crawljax.core.state
Class Identification
- java.lang.Object
-
- com.crawljax.core.state.Identification
-
- All Implemented Interfaces:
Serializable
public class Identification extends Object implements Serializable
The Identification class, this class is used to denote a specific element. Specifying a method and the value for that method.- Author:
- mesbah
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentification.HowThe method used for identifying elements on the DOM tree.
-
Field Summary
Fields Modifier and Type Field Description private Identification.Howhowprivate static longserialVersionUIDprivate Stringvalue
-
Constructor Summary
Constructors Constructor Description Identification()Default constructor to support saving instances of this class as an XML.Identification(Identification.How how, String value)Create a new Identification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Identification.HowgetHow()StringgetValue()org.openqa.selenium.BygetWebDriverBy()Convert a Identification to a By used in WebDriver Drivers.inthashCode()voidsetHow(Identification.How how)voidsetValue(String value)StringtoString()Convert a Identification to a String.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
how
private Identification.How how
-
value
private String value
-
-
Constructor Detail
-
Identification
public Identification()
Default constructor to support saving instances of this class as an XML.
-
Identification
public Identification(Identification.How how, String value)
Create a new Identification.- Parameters:
how- the method of identification (xpath, id, name, ...)value- the value of the identification method.
-
-
Method Detail
-
getHow
public Identification.How getHow()
- Returns:
- the how
-
setHow
public void setHow(Identification.How how)
- Parameters:
how- the how to set
-
getValue
public String getValue()
- Returns:
- the value
-
setValue
public void setValue(String value)
- Parameters:
value- the value to set
-
toString
public String toString()
Convert a Identification to a String.
-
getWebDriverBy
public org.openqa.selenium.By getWebDriverBy()
Convert a Identification to a By used in WebDriver Drivers.- Returns:
- the correct By specification of the current Identification.
-
-