Wuindow Syntax
6.7.1. Clear Text
Clear text of a textbox/textarea in Window Applications.
- Target: Windows UI Object.
(This represents for element that you want to click to.) - Data Input:
- timeout: timeout is time to implement keyword.
- Syntax: clear text [target] ("0");
6.7.2. Click
Click on an element on window application.
- Target: Windows UI Object.
(This represents for element that you want to click to.) - Data Input:
- timeout: timeout is time to implement keyword.
- Syntax: click [target] ("0");
6.7.3. Close By Window Id
Close the window with the given ID.
- Target: No Target is required.
- Data Input: windowID: the ID of window want to close.
- Syntax: close by window id ("");
6.7.4. Close Current Window
Close the current window.
- Target: No Target is required.
- Data Input: No data input is required.
- Syntax: close current window;
6.7.5. Close Window By Title
Close window by the given title.
- Target: No Target is required.
- Data Input: title: the title of window want to close.
- Syntax: close window by title ("");
6.7.6. Double Click
Double Click on the given element.
- Target: Windows UI Object. (This represents for element that you want to double click to.)
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: double click [target] ("0");
6.7.7. Drag And Drop By Offset
Drag an object and drop it to an offset location.
- Target: Windows UI Object.
- 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
- timeout: timeout is time to implement keyword.
- Syntax: drag and drop by offset [target] ("0", "0", "0");
6.7.8. Drag And Drop To Element
Drag an object and drop it into another object.
- Target:
- from: object want to drag.
- to: destination object want to drop into.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: drag and drop to element [from, to] ("0");
6.7.9. Get Attribute Value
Drag an object and drop it into another object.
- Target: Windows UI Object.
- Data Input:
- attributeName: name of attribute value want to get.
- timeout: timeout is time to implement keyword.
- Data Output: The attribute value of a WindowApp element.
- Syntax: get attribute value [target] ("", "0") => output;
6.7.10. Get Current Window ID
Get ID of 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.7.11. Get Current Window Title
Get title of the current Window.
- 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.7.12. Get Elements Count
Count the number of elements on DOM.
- Target: Windows UI Object.
- Data Input: No data input is required.
- Data Output: The number of elements
- Syntax: get elements count [target] => output;
6.7.13. Get Text
Get text of an element.
- Target: Windows UI Object.
- Data Input: timeout: time to implement keyword
- Data Output: The text of elements
- Syntax: get text [target] ("0") => output;
6.7.14. Maximize Window
Get text of an element.
- Target: No Target is required.
- Data Input: No data input is required.
- Syntax: maximize window;
6.7.15. Right Click
Right click on the given element.
- Target: Windows UI Object.
(This represents for element that you want to right click to.) - Data Input: timeout: time to implement keyword.
- Syntax: right click [target] ("0");
6.7.16. Send Keys
SendKeys to a textbox/textarea of window application.
- Target: Windows UI Object.
- Data Input:
- key: string want to send
- timeout: timeout is time to implement keyword.
- Syntax: send keys [target] ("", "0");
6.7.17. Start Windows Application Automation
Start windows application.
- Target: No Target is required.
- Data Input: No data input is required.
- Syntax: start windows application automation;
6.7.18. Stop Windows Application Automation
Stop windows application.
- Target: No Target is required.
- Data Input: No data input is required.
- Syntax: stop windows application automation;
6.7.19. Switch By Window ID
Switch to with window ID input.
- Target: No Target is required.
- Data Input: windowID: ID of window want to switch.
- Syntax: switch by window id ("");
6.7.20. Switch To Window By Title
Switch to the window with a given title.
- Target: No Target is required.
- Data Input: title: Title of the window want to switch.
- Syntax: switch to window by title ("");
6.7.21. Verify Element Attribute Value
Verify if the window element has an attribute with the given name and value.
- Target: No Target is required.
- Data Input:
- attributeName: name of attribute.
- expectedValue: expected value of attribute’s value.
- timeout: timeout is time to implement keyword.
- Syntax: verify element attribute value [target] ("", "", "0");
6.7.22. Verify Element Attribute Value By Regex
Verify if the element has an attribute value with given name by regex.
- Target: Windows UI Object.
- Data Input:
- attributeName: name of attribute.
- 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.
- timeout: timeout is time to implement keyword.
- Syntax: verify element attribute value by regex [target] ("", "", "0");
6.7.23. Verify Element Attribute Value Different From
Verify if the element has an attribute value different from expected value.
- Target: Windows UI Object.
- Data Input:
- attributeName: name of attribute.
- valueToAvoid: the value need to avoid.
- timeout: timeout is time to implement keyword.
- Syntax: verify element attribute value different from [target] ("", "", "0");
6.7.24. Verify Element Disabled
Verify if the given element is disabled.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element disabled [target] ("0");
6.7.25. Verify Element Enabled
Verify if the given element is enabled.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element enabled [target] ("0");
6.7.26. Verify Element Has Attribute
Verify if the element has an attribute with the given name.
- Target: Windows UI Object.
- Data Input:
- attributeName: name of attribute.
- timeout: timeout is time to implement keyword.
- Syntax: verify element has attribute [target] ("", "0");
6.7.27. Verify Element Has Not Attribute
Verify if the element NOT has an attribute with the given name.
- Target: Windows UI Object.
- Data Input:
- attributeName: name of attribute.
- timeout: timeout is time to implement keyword.
- Syntax: verify element not has attribute [target] ("", "0");
6.7.28. Verify Element Not Present
Verify if the given element does not present in DOM.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element not present [target] ("0");
6.7.29. Verify Element Not Selected
Verify if the given element is not selected.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element not selected [target] ("0");
6.7.30. Verify Element Not Visible
Verify if the given element is not visible in DOM.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element not visible [target] ("0");
6.7.31. Verify Element Present
Verify if the given element presents in DOM.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element present [target] ("0");
6.7.32. Verify Element Selected
Verify if the given element is selected.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element selected [target] ("0");
6.7.33. Verify Element Text
Verify text of an element equal with expected text input.
- Target: Windows UI Object.
- Data Input:
- expectedText: expected text
- trimText: Yes/No remove spaces before and after the string, leaving only spaces between words
- ignoreCase: Yes/No skip the uppercase, lowercase word case check.
- timeout: timeout is time to implement keyword.
- Syntax: verify element text [target] ("", "true", "true", "0");
6.7.34. Verify Element Text By Regex
Verify text contains of an element regex
- Target: Windows UI Object.
- 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.
- timeout is time to implement keyword.
- Syntax: verify element text by regex [target] ("", "0");
6.7.35. Verify Element Text Different From
Verify text of an element different with text input.
- Target: Windows UI Object.
- Data Input:
- TextToAvoid: text to avoid.
- TrimText: Yes/No remove spaces before and after the string, leaving only spaces between words.
- IgnoreCase: Yes/No skip the uppercase, lowercase word case check.
- Timeout: timeout is time to implement keyword.
- Syntax: verify element text different from [target] ("", "true", "true", "0");
6.7.36. Verify Element Visible
Verify if the given element is visible in DOM.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Syntax: verify element visible [target] ("0");
6.7.37. Wait For Element Clickable
Wait for the given element to click able with in the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element clickable [target] ("0") => output;
6.7.38. Wait For Element Disabled
Wait for the element is disabled within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element clickable [target] ("0") => output;
6.7.39. Wait For Element Enabled
Wait for element is enabled within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element enabled [target] ("0") => output;
6.7.40. Wait For Element Not Present
Wait for the given element to NOT present (apprear) within the given time. Object Repository: Windows UI Object.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element not present [target] ("0") => output;
6.7.41. Wait For Element Not Selected
Wait for the given element with the given value are not selected within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element not selected [target] ("0") => output;
6.7.42. Wait For Element Not Visible
Wait until the given element is NOT visible within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element not visible [target] ("0") => output;
6.7.43. Wait For Element Present
Wait for the given element to present within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element present [target] ("0") => output;
6.7.44. Wait For Element Selected
Wait for the element with the given value are selected within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element selected [target] ("0") => output;
6.7.45. Wait For Element Visible
Wait until the given element is visible within the given time.
- Target: Windows UI Object.
- Data Input: timeout: timeout is time to implement keyword.
- Data Output: Create or call a variable.
- Syntax: wait for element visible [target] ("0") => output;