Parameter | Data Type | Description |
<locator> | STRING | Address to locate the target element of the dropdown or select element containing the list of options.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.watchcolor.RED | The recorded element to find the red color option in the dropdown. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the option isn't selected. |
This task verifies whether an element is disabled in a webpage.
assertDisabled(<locator>,<errorHandling>);
(or)
<varaiable> = assertDisabled(<locator>,<errorHandling>);
Parameter | Data Type | Description |
<locator> | STRING | Address to locate the element that has to be checked for its disable state.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
where:
ui.zwatch.addtocart.GMT | The recorded element of the add to cart button of the product that needs to be disabled. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the button isn't disabled. |
Parameter | Data Type | Description |
<locator> | STRING | Address to locate the element that has to be checked for visibility.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.GMT | The recorded element of the product that is selected. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the product isn't visible on the webpage. |
assertFocused(<locator>,<errorHandling>);
(or)
<variable> = assertFocused(<locator>,<errorHandling>);
Return Type
Boolean
Parameter | Data Type | Description |
<locator> | STRING | Address to locate the element whose focus state needs to be checked.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.product-search | The recorded element of the search input field. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the search field isn't focused. |
This task checks whether the specified element is hidden in the DOM.
assertHidden(<locator>,<errorHandling>);
(or)
<variable> = assertHidden(<locator>,<errorHandling>);
Return Type
Boolean
Parameter | Data Type | Description |
<locator> | STRING | Address to locate the element to check whether it is currently hidden.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.loginErrorMessage | The recorded element is the error message component displayed during a login attempt on the website. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case if the login error message isn't hidden from the user's visibility on the webpage. |
Parameter | Data Type | Description |
<locator> | STRING | Address to locate the element to check whether the image exists or not.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.GMT-img | The recorded element of the image of product that has to be checked. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the image doesn't exist. |
Parameter | Data Type | Description |
<filename> | STRING | The exact name of the file to be verified, including its extension. |
<time> | LONG | The maximum time the task should wait for the file to be downloaded in seconds. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.GMT-manual | The recorded element of the manual is present on the website. |
"zwatch_GMT-manual.pdf" | The file name of the file that has to be downloaded |
600 | The set download timeout in seconds |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the file is not downloaded. |
Parameter | Data Type | Description |
<locator> | STRING | Address to locate the element to check whether it is currently present.
Note: You can inspect from the webpage to find the locators of the elements or record and store the elements. Learn more about Elements. |
<errorHandling> | STRING | If the verification fails, it returns a false response, as the element mismatches with the actual element. For such scenarios, choose how the consequent test scripts should behave:
|
ui.zwatch.product-Blue-Bay-GMT | The recorded element for the product that has to be checked for its presence on the website. |
errorhandling.STOP_ON_ERROR | This error handling behaviour stops the execution of the test case, if the product is listed. |
Parameter | Data Type | Description |
<message> | STRING | Error message that needs to be printed. |
"https://zwatch.com" | URL of the website that needs to be opened. |
"same window" | This represents that the URL needs to be opened in the same window. |
logoWidthCheck | Variable that stores the width of the logo |
"img[data-zs-logo]" | Locator element to find the logo on the website |
"Logo width incorrect" | Error message that needs to be printed if the width is incorrect |