Class OccurrenceMatchingResult
- java.lang.Object
-
- io.appium.java_client.imagecomparison.ComparisonResult
-
- io.appium.java_client.imagecomparison.OccurrenceMatchingResult
-
public class OccurrenceMatchingResult extends ComparisonResult
-
-
Constructor Summary
Constructors Constructor Description OccurrenceMatchingResult(java.util.Map<java.lang.String,java.lang.Object> input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<OccurrenceMatchingResult>
getMultiple()
Returns the list of multiple matches (if any).org.openqa.selenium.Rectangle
getRect()
Returns rectangle of partial image occurrence.-
Methods inherited from class io.appium.java_client.imagecomparison.ComparisonResult
getVisualization, mapToPoint, mapToRect, storeVisualization, verifyPropertyPresence
-
-
-
-
Method Detail
-
getRect
public org.openqa.selenium.Rectangle getRect()
Returns rectangle of partial image occurrence.- Returns:
- The region of the partial image occurrence on the full image.
-
getMultiple
public java.util.List<OccurrenceMatchingResult> getMultiple()
Returns the list of multiple matches (if any). This property only works if the `multiple` option is enabled.- Returns:
- The list containing properties of each single match or an empty list.
- Throws:
java.lang.IllegalStateException
- If the accessor is called on a non-root match instance.- Since:
- Appium 1.21.0
-
-