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

Attribute

DEV

Attr:: Description
Attr::set::prop::value Now update value of attribute using attribute syntax.
  • Attr::set::disabled::false <input disabled="true"> -> <input disabled="false">
  • Attr::set::target::_blank <a> -> <a target="_blank"> to open links in new tab
Attr::remove::prop Now remove attribute using attribute syntax.
  • Attr::remove::disabled <input disabled="true"> -> <input>

Class

DEV

Class:: Description
Class::add::className
e.g. Class::add::btn
Now add new class to element using class syntax.
  • <input class="button"> -> <input class="button btn">
Class::remove::className
e.g. Class::remove::btn
Now remove new class from element using class syntax.
  • <input class="button btn"> -> <input class="button">
Class::replace::removeClassName::addClassName
e.g. Class::replace::unlike::like
Now replace one class with another to element using class syntax.
  • <span class="unlike"> -> <span class="like">
Class::clear Now remove all class of element using class syntax.
  • <input class="btn btn-primary button"> -> <input class="">

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>size</option>
  <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>
</select>

Example

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

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

Mouse Events

MouseEvents:: Description
MouseEvents::click It will click the element.
MouseEvents::dblclick It will double click the element.
MouseEvents::mousedown It will trigger mouse down event on element.
MouseEvents::mouseup It will trigger mouse up event on element.
MouseEvents::mouseover It will trigger mouse over event on element
MouseEvents::mouseout It will trigger mouse out event on element.
MouseEvents::mouseenter It will trigger mouse enter event on element.
MouseEvents::mouseleave It will trigger mouse leave event on element.
MouseEvents::mousemove It will trigger mouse move event on element.
MouseEvents::["mouseover","mouseover","click"] It will stimulate mouse click on element.
MouseEvents::["mouseout","mouseleave"] It will stimulate mouse click on element.
MouseEvents::input BETA It will trigger input event on element.
MouseEvents::change BETA It will trigger text change event on element.
MouseEvents::["input","change"] BETA It will stimulate text filled and update/change event on element.

Form Events

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

Key Events

BETA

KeyEvents:: Description
KeyEvents::Example Text It simulate typing of `Example Text` same like keyboard typing.
KeyEvents::{"value":"Example text","delay":3} It simulate typing of `Example Text` same like keyboard typing where each letter is typed with 3 sec delay.

Location Command

LocationCommand:: Description
LocationCommand::reload Force reloading the current page from the server.
LocationCommand::href::https://getautoclicker.com it will open https://getautoclicker.com in same tab
LocationCommand::replace::https://getautoclicker.com It will open this page without maintaining history so when you click back you can come to this page again
LocationCommand::assign::https://getautoclicker.com Its similar to you click on link which open another page
LocationCommand::focus Its similar to you focus on window/page
LocationCommand::blur Its similar to you move out on window/page
LocationCommand::print Its similar to you Print (Ctrl + P) out on window/page
LocationCommand::stop Its similar to you stop window/page load
LocationCommand::moveBy::x,y Its similar to move window/page by x and y pixels
LocationCommand::moveTo::x,y Its similar to move window/page to x and y pixels
LocationCommand::open::https://getautoclicker.com Its similar to open https://getautoclicker.com page in new tab

Window Command

BETA

WindowCommand:: Description
WindowCommand::close Close current page only works if page is opened through script and not manually.
WindowCommand::focus Its similar to you focus on window/page
WindowCommand::blur Its similar to you move out on window/page
WindowCommand::print Its similar to you Print (Ctrl + P) out on window/page
WindowCommand::stop Its similar to you stop window/page load
WindowCommand::moveBy::x,y Its similar to move window/page by x and y pixels
WindowCommand::moveTo::x,y Its similar to move window/page to x and y pixels
WindowCommand::open::https://getautoclicker.com Its similar to open https://getautoclicker.com page in new tab
WindowCommand::cut Cut selected text into clipboard
WindowCommand::copy Copy selected text into clipboard
WindowCommand::delete Delete selected text into clipboard
WindowCommand::paste Paste text from clipboard into field
WindowCommand::selectAll Select All text into clipboard

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

Batch Repeat

You can get sequence 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