Solitera may collect certain information by automated means, such as cookies and web beacons, when a user visits our website. A “cookie” is a small piece of data that a website can send to your browser, which may then be stored on your system. learn more
Desktop step-Definition
- Application management
- open the application “element_name”
- close the desktop application “String Value”
- switch focus to window with className “element_name”
- switch focus to window with className “String Value” for max “String Value”
- maximize the desktop application window
- switch focus to window with window title “String Value” for max “String Value”
- Desktop element interation events
- click on desktop window element “element_name”
- double click on desktop window element “element_name”
- save value “testdata_name” in desktop window to clipboard
- paste value from desktop window clipboard to “testdata_name”
- send text “String Value” to input field in desktop window element “element_name”
- select all text in desktop window input field “element_name”
- right click on the desktop element “element_name”
- press “String Value” key on element “element_name”
- click on the element “element_name” for “String Value” number of times
- enter text of variable “Var_Name” and send to “element_name” element in desktop window
- enter random text of length “String Value” from desktop window and store as “Var_Name”
- create random text of length “String Value” from desktop window and send to element “element_name”
- click on the “String value” section of the splitbutton “element_name”
- press “String Value” keys on current cursor location of desktop window
- double click on desktop window element using element image path “String Value”
- double click on desktop window element using element image path “String Value”
- send text “String Value” on desktop window element using element image path “String Value”
- check for the first element “element_name”, if not found then click on second element “element_name” in the desktop window
- hold left mouse button on “element_name” element on desktop window
- release left mouse button on “element_name” element on desktop window
- click on checkbox “element_name” on desktop window
- unselect “element_name” checkbox button on desktop window
- scroll right to “element_name” in desktop window
- click on button “element_name” in desktop window and start timer
- click on element “element_name” in desktop window with xCords “String Value” and yCords “String Value”
- click on link “element_name” in desktop window with xCords “String Value” and yCords “String Value”
- click on image “element_name” in desktop window with xCords “String Value” and yCords “String Value”
- drag element “element_name” in desktop window with xCords “String Value” and yCords “String Value”
- click on action element “element_name” in the desktop window
- copy the text from the element “element_name” and paste in the element “element_name” in the desktop window
- type text “String Value” to input field “element_name” in desktop window
- mouse hover to element “element_name” and click and send value “String Value” to desktop window element
- mouse hover to element “element_name” and click on it in the desktop window
- enter random text of length “String Value” from desktop window and store as “Var_Name”
- hover mouse to desktop window element “element_name”
- Verification
- verify element “element_name” is not displayed on the desktop application UI
- verify element “element_name” is displayed on the desktop application UI
- check the element “element_name” on the desktop application UI till time “String Value” minute
- get the text from desktop application UI at location “element_name” and store as “Var_Name”
- verify stored text “String Value” from desktop application UI at location “element_name”
- verify partial text “String Value” from desktop application UI at location “element_name”
- verify “String Value” from desktop window UI onclick value at location “element_name”
- verify the count “String Value” on specific element “element_name” on the desktop window
- combine “Var_name” with “String Value” and store as “Var_Name” in desktop window
- verify “String Value” css property value equals “String Value” for element “element_name” for desktop window
- Wait step definition
switch focus to window with className “String Value” for max “String Value”
switch focus to window with className “String Value” for max “String Value”
switch focus to window with className “String Value” for max “String Value”
Keyword
Given, When, And, Then
Description
Will switch focus to some other window using className of that window for max time
Declaration
- Code
- Element
- Application
- Test Data
When switch focus to window with className ""Microsoft.UI.Xaml.Controls.MenuBarItem"" for max "30"
NILL
NILL
NILL
Remarks
- The Windows Application Driver (WinAppDriver) installed on your machine. You can download it from the WinAppDriver v1.2.1.
- A windows machine with the desktop application you want to test installed.
- Inspect.exe should be present on your system to inspect the element of desktop application under test (Inspect .exe is a part of Microsoft SDK).
- Default winAppDriver location: C:\Program Files (x86)\Windows Application Driver
Restriction
- Element and application file should be in xml format.
- Last updated on: August 10, 2023
Table of contents