Parameter | Data Type | Description |
<window_index> | OBJECT | The URL or title displayed in the window of the target web
![]() Note: In order to use the URL or the title displayed, use ("<URL>") or ("<title>"). And, to use the index of the tabs opened, where the first new tab's has an index "1" and so on. In the case of iframe, you can either hard code the locators as ("<locator>"), or use the index of the iframe, where the first child has an index "1" and so on. Alternatively, you can also use recorded elements as, (ui.<locator>). Learn more about Elements |
| <isFrame> | BOOLEAN | This takes a boolean logic value, either "TRUE" or "FALSE", which determines the window index given is iframe. |
Syntax
Parameter | Data Type | Description |
<session_name> | OBJECT | The session names include:
To switch between child iframes and the default webpage content. Use the following inputs:
To switch between the default window and the new window, use the following inputs. Here, the primary window is the window that was opened first, and the newly opened window is referred to as the secondary window.
Note: This task allows only one new window to be accessed at a time.
|
Parameter | Data Type | Description |
<variable> | STRING | Variable that contains the URL value of the webpage. |
where:
URL of the website that needs to be opened. | |
"same window" | This represents that the URL needs to be opened in the same window. |
ui.zwatch.field_keywords | The recorded element for the search input field. |
"casio vintage" | The product searched in the input field. |
[keys.ENTER] | The key sent to submit the input search field. |
3 | The time it waits for the product webpage to load |
current_URL | The variable that captures the URL of the selected product. |
expected_URL | The variable that stores the expected URL of the product. |
"https://www.zwatch.com/product-category/casio_vintage" | The expected URL with which the product URL has to be compared. |
"URL verification successful. User has reached the correct product page." | The message that has to be displayed, if the expected URL is the same as the product URL. |
"URL verification failed. User did not reach the expected product page." | The message that has to be displayed, if the expected URL isn't the same as the product URL. |
"https://www.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. |
ui.zwatch.zwatch_Daytona | The recorded element of the product "Daytona", viewed from the e-commerce website. |
Parameter | Data Type | Description |
<resize_input> | STRING | The input determines how the window size of the webpage should be displayed.
The following are the three resize input:
Note: In order to set the custom width and height for the window, use ("width:<int>,height:<int>").
|
URL of the website that needs to be opened. | |
"same window" | This represents that the URL needs to be opened in the same window. |
"width:800 , height:600" | The required measurements of the browser window in pixels. |
The task performs the action to move to the next page from the current page on the browser.
URL of the website that needs to be opened. | |
"same window" | This represents that the URL needs to be opened in the same window. |
5 | The time specified to wait for the URL to be opened. |
ui.zwatch.terms | The recorded element for the terms and conditions webpage. |
The task performs the action to close the current webpage on the browser.

Note: If there is only one open window in the browser, the task will not close it since it serves as the default window.
Syntax
close();
URL of the website that needs to be opened. | |
"same window" | This represents that the URL needs to be opened in the same window. |
3 | The time it waits for the e-commerce website to load |
ui.zwatch.daytona | The time it waits for the webpage of the product "Daytona" to load |
3 | The time it waits for the product webpage to load |
URL of the webpage that needs to be opened. | |
"new window" | This represents that the URL needs to be opened in the same window. |
3 | The time it waits for the webpage of the product "casio vintage" to load |