Quantum utilities | Visual Analysis Commands in Quantum
The DeviceUtils
class in Quantum can be used to execute Perfecto's visual analysis commands, such as visual text and visual image verification.
Command type | Command | Format | Description |
---|---|---|---|
Visual text analysis |
|
String |
Verifies that the text is visible on the device using visual analysis. Returns |
DeviceUtils.assertVisualText
|
String |
Asserts that the text is visible on the device using visual analysis. Aborts if the text is not visible. |
|
DeviceUtils.waitForPresentTextVisual
|
String |
Waits for the text to be visible for the specified number of seconds using visual analysis. |
|
Visual image analysis |
DeviceUtils.verifyVisualImg
|
String |
Verifies that the image specified by a path in the Perfecto repository is visible on the device using visual analysis. Returns |
DeviceUtils.assertVisualImg
|
String |
Asserts that the image specified by a path in the Perfecto repository is visible on the device using visual analysis. Aborts if the image is not visible. |
|
DeviceUtils.waitForPresentImageVisual
|
String |
Waits for the image specified by a path in the Perfecto repository to be visible for the specified number of seconds using visual analysis. |
See also