Back to QMetry All Products Help Page
Assertion
- 1 Assert Not Value
- 2 Assert Not Text
- 3 Assert Not Selected
- 4 Assert Value
- 5 Assert CSS Style
- 6 Assert Not Visible
- 7 Assert CSS Style Color
- 8 Assert Window Title
- 9 Assert Not CSS Class
- 10 Assert CSS Class
- 11 Assert Disabled
- 12 Assert Selected
- 13 Assert Text
- 14 Assert Not CSS Style
- 15 Assert Present
- 16 Assert Link With Text Present
- 17 Assert Link With Partial Text Present
- 18 Assert Not Attribute
- 19 Assert Enabled
- 20 Assert Windows Count
- 21 Assert Not Present
- 22 Assert Attribute
- 23 Assert Not CSS Style Color
- 24 Assert Visible
Assert Not Value | ||
| ||
This action is useful to check that the added value is not present at the given locator. In the parameter, the user needs to add locator and value of the locator. | ||
| ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | QAssertNotValue | |
Descriptive | Assert {loc} value is not {value} | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
value | STRING | Value to be assert. |
|
|
|
|
|
|
Assert Not Text | ||
| ||
This action is useful to check that the given text is not available on the UI elements on the website and mobile applications. | ||
| ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | QAssertNotText | |
Descriptive | Assert {loc} text is not {text} | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
Text | STRING | Text to be assert. |
|
|
|
|
|
|
Assert Not Selected | ||
| ||
This action is useful to verify that the added locator is not selected on the website and application. This action is useful in the drop-downs, checkboxes and radio buttons.
| ||
| ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | QAssertNotSelected | |
Descriptive | Assert {loc} is not selected | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
|
|
|
|
|
|
|
|
|
Assert Value | ||
| ||
This action is useful to check the presence of any elements in the website and mobile applications. It will show an error if the asserted value is not found. It contains two parameters: locator and the value of that locator. | ||
| ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | QAssertValue | |
Descriptive | Assert {loc} value is {value} | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
value | STRING | Value to be assert. |
|
|
|
|
|
|
Assert CSS Style | ||
| ||
This action is useful to compare the element CSS with your value. If the element’s CSS value matches with your value, then the execution resumes. | ||
| ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | qAssertCssStyle | |
Descriptive | Assert {loc} property {prop} value is {value} | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
prop | STRING | Property (css style) to be asserted. |
Value | STRING | Value of property (i.e css style property value). |
|
|
|
|
|
|
Assert Not Visible | ||
| ||
This assert is useful to verify that the specific object (locator) is not visible on DOM. | ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | QAssertNotVisible | |
Descriptive | Assert {loc} is not visible | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
|
|
|
Assert CSS Style Color | ||
| ||
This action is useful to compare the element style color with your given value. If the element’s style color value matches with your value, then the execution resumes. | ||
| ||
Usage | ||
| ||
| ||
| ||
|
| |
Command | qAssertCssStyleColor | |
Descriptive | Assert {loc} color {prop} value is {value} | |
Runtime | WD | |
Type | ASSERTION | |
Support | Web & Mobile | |
|
| |
| ||
Parameters | ||
Name | Type | Details |
loc | LOCATOR | An element locator can be a direct locator value or a locator key stored in locator repository. |
Prop | STRING | Color property (css style) to be verified. |
Value | STRING | Value of color in hex or rgb or rgba. |
|
|
|
|
|
|
Assert Window Title |