Skip to main content Skip to docs navigation

Now you can perform much more than just click or fill form elements. an element referred in below table is one which is found by Xpath

Query Param

Query:: Description
?param=value Query parameters can be defined as the optional key-value pairs that appear after the question mark in the URL. Basically, they are extensions of the URL that are utilized to help determine specific content or action based on the data being delivered. Query parameters are appended to the end of the URL, using a ‘?’. The question mark sign is used to separate path and query parameters.

If you want to add multiple query parameters, an ‘&’ sign is placed in between them to form what is known as a query string. It can feature various object types with distinct lengths such as arrays, strings, and numbers.

Select Option

<select id="product-size">
  <option data-value-class="opt-35item-0" data-value-size="35" value="opt-35item-0">35</option>
  <option data-value-class="opt-36item-1" data-value-size="36" value="opt-36item-1">36</option>
  <option data-value-class="opt-37item-2" data-value-size="37" value="opt-37item-2">37</option>
  <option data-value-class="opt-38item-3" data-value-size="38" value="opt-38item-3">38</option>
  <option data-value-class="opt-39item-4" data-value-size="39" value="opt-39item-4">39</option>
  <option data-value-class="opt-40item-5" data-value-size="40" value="opt-40item-5">40</option>


Element Finder Selection
//select[@id="product-size"]/option[2] It will select second option with text as 35
//select[@id="product-size"]/option[@data-value-size="36"] It will select third option with text as 36
//select[@id="product-size"]/option[contains(@value,"opt-40")] It will select last option with text as 40
//select[@id="product-size"]/option[text()="39"] It will select last second option with text as 39
You must set the value field to true

Scroll To Examples

ScrollTo:: Description
XPath It will scroll the page to element.
Top | TopLeft It will scroll the page to Top Left position.
TopRight It will scroll the page to Top Right position.
Bottom | BottomLeft It will scroll the page to Bottom Left position.
BottomRight It will scroll the page to Bottom Right position.

Click Events / Mouse Events Examples

ClickEvents:: / MouseEvents:: Description
click It will click the element.
dblclick It will double click the element.
mousedown DEV It will trigger mouse down event on element.
mouseup DEV It will trigger mouse up event on element.
mouseover DEV It will trigger mouse over event on element
mouseout DEV It will trigger mouse out event on element.
mouseenter DEV It will trigger mouse enter event on element.
mouseleave DEV It will trigger mouse leave event on element.
mousemove DEV It will trigger mouse move event on element.

Form Events Examples

FormEvents:: Description
blur It will trigger blur event on the element.
It removed focus from the element.
focus It will trigger focus event on the element.
select It will trigger select event on the element.
In input field and textarea it will select the text inside
clear It will trigger clear event on the element.
It clears field value.
remove It will remove element.
submit It will submit the form in which element is present.

Location Command


LocationCommand:: Description
LocationCommand::reload Force reloading the current page from the server.
LocationCommand::href:: it will open in same tab
LocationCommand::replace:: It will open this page without maintaining history so when you click back you can come to this page again
LocationCommand::assign:: Its similar to you click on link which open another page

You can also perform more than one task in series e.g

Random Value


You can get random value with batch repeat

e.g. In value field if you enter example<batchRepeat>

  1. Value will be example0
  2. Value will be example1
This will continue for no of batch repeat you have provided.

e.g. If batch repeat is 5 it will run till example4