Web Syntax
6.1.1. Open Browser
Open a browser and navigate to the specified URL. If the URL is left empty then just open a browser.
- Target: No Target is required.
- Data Input: URL of website.
- Syntax: open browser ("");
6.1.2. Accept Alert
Simulate users clicking on “OK” button of an alert popup (alert, confirmation popup, prompt popup).
- Target: No Target is required.
- Data Input: No Data Input is required.
- Syntax: accept alert;
6.1.3. Back
Simulate users clicking “back” button on their browser.
- Target: No Target is required.
- Data Input: No Data Input is required.
- Syntax: back;
6.1.4. Clear Text
Clear text.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for elements: text box, text area.) - Data Input: No Data Input is required.
- Syntax: back;
6.1.5. Click
Click on the given element.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for element that you want to click to.) - Data Input: No Data Input is required.
- Syntax: click [target];
6.1.6. Click With Javascript
Click on the given element using Javascript.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for element that you want to click to.) - Data Input: No Data Input is required.
- Syntax: click with javascript [target];
6.1.7. Close By Window ID
Close window with the given ID.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for element that you want to click to.) - Data Input: The window Id of a window, you can use syntax "get current window id => output;" to find the Id of windows.
- Syntax: close by window id ("");
6.1.8. Close Current Window
Close the current window.
- Target: No Target is required.
- Data Input: No Data Input is required.
- Syntax: close current window;
6.1.9. Close Window By Title
Close the window with the given title.
- Target: No Target is required.
- Data Input: The window title for a page (often called the “title tag”) is, most simply, the text that appears at the top of a visitor’s web browser when viewing that page.
- Syntax: close window by title ("");
6.1.10. Close Window By URL
Close the window with the given URL.
- Target: No Target is required.
- Data Input: The URL of a window, you can use syntax "get current window url => output;" to find the Id of windows.
- Syntax: close window by url ("");
6.1.11. Deselect All Options
If some or all your options are selecting, use this keyword to deselect all of them.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for elements: Select.) - Data Input: No Data Input is required.
- Syntax: deselect all options [target];
6.1.12. Deselect Option By Index
Deselect the option at the given index. The index starts from 0.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for elements: Select.) - Data Input: Index of your Option into “Input” column.
- Syntax: deselect option by index [target] ("0");
6.1.13. Deselect Option By Label
Deselect the options with the given label (displayed text).
- Target: Select UIObject that you defined in Object Repositories.
(This represents for elements: Select.) - Data Input: Text in “Input” column -> label: label of element that you want to deselect.
- Syntax: deselect option by label [target] ("0");
6.1.14. Deselect Option By Value
Deselect the options with the given value.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for elements: Select.) - Data Input: Text in “Input” column -> value: value of element that you want to deselect.
- Syntax: deselect option by value [target] ("");
6.1.15. Dismiss Alert
Simulate users clicking on “Cancel” button of an alert popup (alert, confirmation popup, prompt popup).
- Target: No Target is required.
- Data Input: No Data Input is required.
- Syntax: dismiss alert;
6.1.16. Double Click
Double click on the given element.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for element that you want to click to.) - Data Input: No Data Input is required.
- Syntax: double click [target];
6.1.17. Drag And Drop By Offset
Double click on the given element.
- Target: UIObject of start Point.
- Data Input:
- xOffset: Pixel number of moving by horizontal axis to of desired destination.
- yOffset: Pixel number of moving by vertical axis to of desired destination.
- Syntax: drag and drop by offset [target] ("0", "0");
6.1.18. Drag And Drop To Element
Drag an object and drop an object onto the Location of another object.
- Target:
- from: UIObject of starting.
- to: destination Object.
- Data Input: No Data Input is required.
- Syntax: drag and drop to element [from, to];
6.1.19. Execute Javascript
Execute JavaScript on the currently selected frame or window. The provided script fragment will be executed as the body of an anonymous function.
- Target: No Target is required.
- Data Input: Input your JavaScript code here.
- Syntax: execute javascript ("");
6.1.20. Forward
Simulate users clicking “forward” button on their browser.
- Target: No Target is required.
- Data Input: No Data input is required.
- Syntax: forward;
6.1.21. Get Alert Text
Get displayed text of an alert popup (alert, confirmation popup, prompt popup).
- Target: No Target is required.
- Data Input: No Data input is required.
- Data Output: Displayed text of an alert popup.
- Syntax: get alert text => output;
6.1.22. Get Attribute Value
Get displayed text of an alert popup (alert, confirmation popup, prompt popup).
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Input which attribute of the element that you want to get information from.
- Data Output: The attribute value of a web element.
- Syntax: get attribute value [target] ("") => output;
6.1.23. Get CSS Attribute Value
Get the CSS value of a web element.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Input which CSS value of the element that you want to get information from.
- Data Output: CSS value of a web element.
- Syntax: get css attribute [target] ("") => output;
6.1.24. Get Current Window ID
Get ID the current Window.
- Target: No Target is required.
- Data Input: No Data Input is required.
- Data Output: ID of the current Window.
- Syntax: get current window id => output;
6.1.25. Get Current Window Title
Get title the current web page.
- Target: No Target is required.
- Data Input: No Data Input is required.
- Data Output: Title of the current Window.
- Syntax: get current window title => output;
6.1.26. Get Current Window URL
Get URL of the current window.
- Target: No Target is required.
- Data Input: No Data Input is required.
- Data Output: URL of the current Window.
- Syntax: get current window url => output;
6.1.27. Get Number Of Deselection Option
Count the number of options which are being deselected the given web element has.
- Target: Select UIObject that you defined in Target.
(This represents for elements: Select.) - Data Input: No Data input is required.
- Data Output: Number of options which are being deselected.
- Syntax: get number of deselected option [target] => output;
6.1.28. Get Number Of Option
Count the total number of options the given web element has.
- Target: Select UIObject that you defined in Target.
(This represents for elements: Select.) - Data Input: No Data input is required.
- Data Output: Number of options the given web element.
- Syntax: get number of option [target] => output;
6.1.29. Get Number Of Selected Option
Count the number of options which are being selected the given web element has.
- Target: Select UIObject that you defined in Target.
(This represents for elements: Select.) - Data Input: No Data input is required.
- Data Output: Number of options the given web element.
- Syntax: get number of selected option [target] => output;
6.1.30. Get Text
Get the visible (i.e. not hidden by CSS) inner text of the web element, including sub-elements, without any leading or trailing white space.
- Target: Select UIObject that you defined in Target.
- Data Input: No Data input is required.
- Data Output: The inner text of the web element.
- Syntax: get text [target] => output;
6.1.31. Get Text From Multiple Elements
Get text list from multiple Element.
- Target: Select UIObject that you defined in Target.
- Data Input: No Data input is required.
- Data Output: The text list from multiple element.
- Syntax: get text from multiple elements [target] => output;
6.1.32. Get Window Count
Get Number Of Window opening in browser.
- Target: Select UIObject that you defined in Target.
- Data Input: No Data input is required.
- Data Output: Number of window opening.
- Syntax: get window count => output;
6.1.33. Maximize Current Window
Maximize current window.
- Target: No Target is required.
- Data Input: No Data input is required.
- Syntax: maximize current window;
6.1.34. Minimize Current Window
Minimize current window.
- Target: No Target is required.
- Data Input: No Data input is required.
- Syntax: minimize current window;
6.1.35. Mouse Over
Simulate users hovering a mouse over the given element.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: No Data input is required.
- Syntax: mouse over [target];
6.1.36. Navigate to URL
Navigate user from current URL to specified URL.
- Target: No Target is required.
- Data Input: URL of website.
- Syntax: navigate to url ("");
6.1.37. Open New Tab
Navigate user from current URL to specified URL.
- Target: No Target is required.
- Data Input: URL of website.
- Syntax: navigate to url ("");
6.1.38. Open New Window
Open a new window of the browser with URL input.
- Target: No Target is required.
- Data Input: URL of website.
- Syntax: open new window ("") => output;
6.1.39. Quit Browser
Quit all browser.
- Target: No Target is required.
- Data Input: No Data input is required.
- Syntax: quit browser;
6.1.40. Refresh
Simulate users clicking “refresh” button on their browser. It’s the same with pressing F5 in your keyboard.
- Target: No Target is required.
- Data Input: No Data input is required.
- Syntax: refresh;
6.1.41. Right Click
Right click on the given element.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for element that you want to click to.) - Data Input: No Data input is required.
- Syntax: right click [target];
6.1.42. Scroll To Element
Scroll an element into the visible area of the browser window.
- Target: Select UIObject that you defined in Object Repositories.
(This represents for element that you want to scroll to.) - Data Input: Waiting time for loading.
- Syntax: scroll to element [target];
6.1.43. Select All Options
If some or all your Options are unselected, use this keyword to select all of them.
- Target: Select UIObject that you defined in Object Repositories.
(This is only applied for multiple select.) - Data Input: No Data Input is required.
- Syntax: select all options [target];
6.1.44. Select Option By Index
Select the option at the given indexes. The index starts from 0.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Index of your Option into “index” cell.
- Syntax: select option by index [target] ("0");
6.1.45. Select Option By Label
Select the options with the given labels (displayed text).
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of your Option into “label” cell.
- Syntax: select option by label [target] ("");
6.1.46. Select Option By Value
Select the options with the given values.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of your Option into “value” cell.
- Syntax: select option by value [target] ("");
6.1.47. Send Keys
Simulate keystroke events on the specified element, as though you typed the value key-by-key.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of your Option into “keys” cell.
- Syntax: send keys [target] ("");
6.1.48. Send Special Keyboard Character
Simulate keystroke events for non-text keys. Which represents action in your keyboards.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Key represents for keyboard actions.
- Syntax: send special keyboard character [target] ("");
6.1.49. Set Attribute
Set a new attribute into the element.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input:
- attributeName of attribute you want to add new.
- attributeValue: value of attribute you current add above.
- Syntax: send special keyboard character [target] ("");
6.1.50. Set CSS Attribute
Set a new CSS attribute into the element.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: attributeName of attribute you want to add new.
- Syntax: set css attribute [target] ("", "");
6.1.51. Set Text On Alert
Simulate users typing text into a prompt alert popup.
- Target: No Target is required.
- Data Input: Value for the text need inputting into Alert box.
- Syntax: set text on alert ("");
6.1.52. Submit
If the current element is a form or an element within a form, then this will be submitted. If this causes the current page to change, then this method will block until the new page is loaded.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: No data input is required.
- Syntax: submit [target];
6.1.53. Switch By Window ID
Switch to window with Id input.
- Target: No Target is required.
- Data Input: Input the Id of window you want to switch.
- Syntax: switch by window id ("");
6.1.54. Switch To Default Content
Switch back to default window, after dealing with some framed elements.
- Target: No Target is required.
- Data Input: No Data Input is required.
- Syntax: switch to default content;
6.1.55. Switch To Frame
Switch the current context into an iframe.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: No Data Input is required.
- Syntax: switch to frame [frame];
6.1.56. Switch To Frame By Name Or ID
Switch the current context into an iframe by name or Id of that iframe.
- Target: No UIObject is required.
- Data Input: Input the name or Id of that iframe you want switch.
- Syntax: switch to frame by name or id ("");
6.1.57. Switch To Window By Title
Switch to the window with a given title.
- Target: No UIObject is required.
- Data Input: The window title for a page (often called the “title tag”) is, most simply, the text that appears at the top of a visitor’s web browser when viewing that page.
- Syntax: switch to window by title ("");
6.1.58. Switch To Window By URL
Switch to the window with the given URL.
- Target: No UIObject is required.
- Data Input: URL of the website.
- Syntax: switch to window by url ("");
6.1.59. Verify Alert Not Present
Verify if alert does not present.
- Target: No UIObject is required.
- Data Input: Name or Id of that iframe you want switch.
- Syntax: verify alert not present ("0");
6.1.60. Verify Alert Present
Verify if alert present.
- Target: No UIObject is required.
- Data Input: Waiting time for returning result(s)
- Syntax: verify alert present ("0");
6.1.61. Verify Element Attribute Value
Verify if the web element has an attribute with the specified name and value.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input:\
- attributeName: such as id, name, class….
- expectedValue: value of given attribute above...
- Syntax: verify element attribute value [target] ("", "");
6.1.62. Verify Element Attribute Value By Regex
Verify if the web element has an attribute with the name and suitable value by regex.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input:
- attributeName: such as id, name, class….
- regex: A regular expression (shortened as regex or regexp; sometimes referred to as rational expression) is a sequence of characters that specifies a search pattern in text.
- Syntax: verify element attribute value by regex [target] ("", "");
6.1.63. Verify Element Attribute Value Different
Verify if the web element has an attribute different with the name and value.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input:
- attributeName: such as id, name, class….
- valueToAvoid: input the value you don’t want attribute name equal.
- Syntax: verify element attribute value different from [target] ("", "");
6.1.64. Verify Element Clickable
Verify if the given element is clickable.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Waiting time for returning result(s)
- Syntax: verify element clickable [target] ("0");
6.1.65. Verify Element Disable
Verify if the given element is disabled.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Waiting time for returning result(s)
- Syntax: verify element disabled [target] ("0");
6.1.66. Verify Element Enable
Verify if the given element is enabled.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Waiting time for returning result(s)
- Syntax: verify element enabled [target] ("0");
6.1.67. Verify Element Has Attribute
Verify if the web element has an attribute with the specified name.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Attribute name of element.
- Syntax: verify element has attribute [target] ("");
6.1.68. Verify Element Not Has Attribute
Verify if the web element doesn’t have an attribute with the specified name.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Attribute name of element.
- Syntax: verify element not has attribute [target] ("");
6.1.69. Verify Element Not Present
Verify if the given web element does NOT present on the DOM.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Waiting time for returning result(s).
- Syntax: verify element not visible [target] ("0");
6.1.70. Verify Element Not Visible
Verify if given web element is NOT visible even it presents on the DOM.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Waiting time for returning result(s).
- Syntax: verify element not visible [target] ("0");
6.1.71. Verify Element Present
Verify if the given web element does present on DOM.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Waiting time for returning result(s).
- Syntax: verify element present [target] ("0");
6.1.72. Verify Element Text
Verify text of an element equal with expected text input.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input:
- expectedText: Example, the title has text “Title” and we use Key word “Verify Element Text” to verify exactly the text must be “Title”.
- trimText: Boolean type: yes/no remove spaces before and after the string, leaving only spaces between words.
- ignoreCase: Boolean type: yes/no skip the uppercase, lowercase word case check.
- Syntax: verify element text [target] ("", "true", "true");
6.1.73. Verify Element Text By Regex
Verify text contains of an element regex
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: regex: A regular expression (shortened as regex or regexp; sometimes referred to as rational expression) is a sequence of characters that specifies a search pattern in text.
- Syntax: verify element text by regex [target] ("");
6.1.74. Verify Element Text Different From
Verify text of an element different with text input.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input:
- textToAvoid: input the text you want to avoid it.
- trimText: Boolean type: true/false.
- ignoreCase: true/false.
- Syntax: verify element text different from [target] ("", "true", "true");
6.1.75. Verify Element Visible
Verify if the given web element is visible.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: verify element visible [target] ("0");
6.1.76. Verify Option Deselected By Index
Verify if the options at the given indices are not selected by index.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Index of element that you want to verity that is not selected.
- Syntax: verify option deselected by index [target] ("0");
6.1.77. Verify Option Deselected By Value
Verify if the options with the given displayed texts are not selected by value.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Attribute value of element that you want to verify not selected.
- Syntax: verify option deselected by value [target] ("0");
6.1.78. Verify Option Deselected By Label
Verify if the options with the given displayed texts are not selected by label.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of element that you want to verify not selected.
- Syntax: verify option deselected by label [target] ("0");
6.1.79. Verify Option Present By Label
Verify if the option with the given displayed text.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of element that you want to verify present.
- Syntax: verify option present by label [target] ("");
6.1.80. Verify Option Present By Value
Verify if the options with the given value present.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Value of option that you want to verify not present.
- Syntax: verify option present by value [target] ("");
6.1.81. Verify Option Selected By Index
Verify if the options at the given indices are selected by index.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Index of element that you want to verify.
- Syntax: verify option selected by index [target] ("0");
6.1.82. Verify Option Selected By Label
Verify if the options with the given displayed text are selected.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of element that you want to verify.
- Syntax: verify option selected by label [target] ("");
6.1.83. Verify Option Selected By Value
Verify if the options with the given value are selected.
The difference between Select by Value and Select by Value Label: sometimes Value and Label of element will not be the same. In some case, Value of element will be set by ID to be saved into database. There for, depend on your demand to select suitable keyword.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Label of element that you want to verify selected.
- Syntax: verify option selected by value [target] ("");
6.1.84. Wait For Alert
Wait for an alert to present with timeOut(s).
- Target: No Target is required.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for alert ("0") => output;
6.1.85. Wait For Element Clickable
Wait for the given element to be clickable within the given time (in seconds).
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element clickable [target] ("0") => output;
6.1.86. Wait For Element Disabled
Wait for element disabled within a time in second unit.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element disabled [target] ("0") => output;
6.1.87. Wait For Element Enabled
Wait for element enable within a time in second unit.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element enabled [target] ("0") => output;
6.1.88. Wait For Element Not Present
Wait for the given element to NOT present (appear) within the given time (in seconds).
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element not present [target] ("0") => output;
6.1.89. Wait For Element Not Visible
Wait until the given web element is NOT visible within a timeout.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element not visible [target] ("0") => output
6.1.90. Wait For Element Present
Wait for the given element to present within the given time (in second).
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element present [target] ("0") => output;
6.1.91. Wait For Element Visible
Wait until the given web element is visible within the timeout.
- Target: Select UIObject that you defined in Object Repositories.
- Data Input: Timeout: System will wait at most timeout (second) to return result.
- Syntax: wait for element visible [target] ("0") => output;