public abstract class ComparisonResult
extends java.lang.Object
Constructor and Description |
---|
ComparisonResult(java.util.Map<java.lang.String,java.lang.Object> commandResult) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCommandResult() |
byte[] |
getVisualization()
Returns the visualization of the matching result.
|
static org.openqa.selenium.Point |
mapToPoint(java.util.Map<java.lang.String,java.lang.Object> map)
Transforms a map into
Point object. |
static org.openqa.selenium.Rectangle |
mapToRect(java.util.Map<java.lang.String,java.lang.Object> map)
Transforms a map into
Rectangle object. |
void |
storeVisualization(java.io.File destination)
Stores visualization image into the given file.
|
protected void |
verifyPropertyPresence(java.lang.String propertyName)
Verifies if the corresponding property is present in the commend result
and throws an exception if not.
|
public ComparisonResult(java.util.Map<java.lang.String,java.lang.Object> commandResult)
protected java.util.Map<java.lang.String,java.lang.Object> getCommandResult()
protected void verifyPropertyPresence(java.lang.String propertyName)
propertyName
- the actual property name to be verified for presencepublic byte[] getVisualization()
public void storeVisualization(java.io.File destination) throws java.io.IOException
java.io.IOException
public static org.openqa.selenium.Rectangle mapToRect(java.util.Map<java.lang.String,java.lang.Object> map)
Rectangle
object.map
- the source map.Rectangle
objectpublic static org.openqa.selenium.Point mapToPoint(java.util.Map<java.lang.String,java.lang.Object> map)
Point
object.map
- the source map.Point
object