Desktop application operations – Page 11 – SoliteraTA

SoliteraTA

Desktop application operations

select all text from element {string} in desktop window

Desktop step-Definition select all text from element {string} in desktop window Keyword Given, When, And, Then Description To select all the text present inside the input field element Declaration Code Element Application Test Data When select all text from element “InputField” in desktop window ” InputField ID Input ” NILL NILL Remarks Selecting all text in an input field can be useful for clearing or replacing the existing content. Restriction Verify that the element “element_name” is an input field that supports text selection. Table of contents Keyword Description Declaration Remarks Restriction

select all text from element {string} in desktop window Read More »

send text {string} to element {string} in desktop window

Desktop step-Definition send text {string} to element {string} in desktop window Keyword Given, When, And, Then Description Will send some string value to the input field element Declaration Code Element Application Test Data Then send text “Solitera” to element “InputField” in desktop window ” InputField ID Input ” NILL NILL Remarks Sending the desired text into the input fields in desktop window Restriction Ensure that the application is in the correct state to receive the text and that the element is visible and enabled. Table of contents Keyword Description Declaration Remarks Restriction

send text {string} to element {string} in desktop window Read More »

paste value from clipboard to element {string} in desktop window

Desktop step-Definition paste value from clipboard to element {string} in desktop window Keyword Given, When, And, Then Description Will paste string value from the clipboard to the given desktop window element Declaration Code Element Application Test Data When paste value from clipboard to element “InputField” in desktop window ” InputField ID Input ” 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. Table of contents Keyword Description Declaration Remarks Restriction

paste value from clipboard to element {string} in desktop window Read More »

save value {string} from desktop window to clipboard

Desktop step-Definition save value {string} from desktop window to clipboard Keyword Given, When, And, Then Description Will save string value to the clipboard Declaration Code Element Application Test Data When save value “Solitera” from desktop window to clipboard NILL NILL NILL Remarks NILL Restriction NILL Table of contents Keyword Description Declaration Remarks Restriction

save value {string} from desktop window to clipboard Read More »

double click on desktop window element {string}

Desktop step-Definition double click on desktop window element {string} Keyword Given, When, And, Then Description Will double click on an element in the desktop application Declaration Code Element Application Test Data When double click on desktop window element “HomeBtn” ” HomeBtn name Home ” NILL NILL Remarks This step performs a double-click action on the element specified by “element_name” within the desktop window. Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to double-click on. Make sure the element is visible and clickable before attempting the double-click action. Table of contents Keyword Description Declaration Remarks Restriction

double click on desktop window element {string} Read More »

maximize the desktop application window

Desktop step-Definition maximize the desktop application window Keyword Given, When, And, Then Description Will maximise the desktop application window Declaration Code Element Application Test Data When maximise the desktop application window NILL NILL NILL Remarks This step maximizes the desktop application window. Restriction It’s important to verify that the application supports window maximization. Some applications may have restrictions on resizing or maximizing their windows. Table of contents Keyword Description Declaration Remarks Restriction

maximize the desktop application window Read More »

click on desktop window element {string}

Desktop step-Definition click on desktop window element {string} Keyword Given, When, And, Then Description Will click on the specified element in the desktop window Declaration Code Element Application Test Data Then click on desktop window element “InputField” ” InputField name Input ” NILL NILL Remarks This step performs a click action on the element specified by “element_name” within the desktop window. Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to click on. Make sure the element is visible and clickable before attempting the click action. Table of contents Keyword Description Declaration Remarks Restriction

click on desktop window element {string} Read More »

close the desktop application

Desktop step-Definition close the desktop application Keyword Given, When, And, Then Description Will close the current window of desktop application under test. Declaration Code Element Application Test Data Then close the desktop application NILL NILL NILL Remarks Make sure there are no unsaved changes that could be lost during the application closure. This step closes the desktop application. Restriction The desktop application must  be open Table of contents Keyword Description Declaration Remarks Restriction

close the desktop application Read More »

open the application {string}

Desktop step-Definition open the application “application_name” Keyword Given, When, And, Then Description Will open the desktop application by passsing its actual path. Declaration Code Element Application Test Data Given open the application “Notepad” Nill Notepad desktop_application C:WindowsSystem32notepad.exe true NILL Remarks This step definition is used to open a specific application with the name “app_name.” open the desktop application, application full path is required, path to be set in the application file. Restriction Make sure you have the necessary permissions to launch the application. Table of contents Keyword Description Declaration Remarks Restriction

open the application {string} Read More »

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