Desktop application operations – Page 4 – SoliteraTA

SoliteraTA

Desktop application operations

verify text {string} is present on the desktop window

Desktop step-Definition verify text {string} is present on the desktop window Keyword Given, When, And, Then Description Will check if the given text is present in the window. Declaration Code Element Application Test Data Then verify text “SoliteraTA” is present on the desktop window NILL NILL NILL Remarks Verifying element visibility is a fundamental step in UI automation. Restriction Make sure text is correct and visible on the screen. Confirm that the verification correctly identifies the visibility state of the text. Table of contents Keyword Description Declaration Remarks Restriction

verify text {string} is present on the desktop window Read More »

verify text {string} is not present in desktop window element {string}

Desktop step-Definition verify text {string} is not present in desktop window element {string} Keyword Given, When, And, Then Description Will check if the given text is not present in the window element. Declaration Code Element Application Test Data Then verify text “SoliteraTA” is not present in desktop window element “FormulaBar” FormulaBar NAME Formula Bar NILL NILL Remarks Verifying element visibility is a fundamental step in UI automation. Restriction Make sure element name is correct and visible on the screen. Confirm that the verification correctly identifies the visibility state of the element. Ensure that “element_name” is a valid and unique identifier. Make sure the element is visible and readable before attempting any action. Table of contents Keyword Description Declaration Remarks Restriction

verify text {string} is not present in desktop window element {string} Read More »

verify text {string} is present in desktop window element {string}

Desktop step-Definition verify text {string} is present in desktop window element {string} Keyword Given, When, And, Then Description Will check if the given text is present in the window element Declaration Code Element Application Test Data Then verify text “SoliteraTA” is present in desktop window element “FormulaBar” FormulaBar NAME Formula Bar NILL NILL Remarks Verifying element visibility is a fundamental step in UI automation. Restriction Make sure element name is correct and visible on the screen. Confirm that the verification correctly identifies the visibility state of the element. Ensure that “element_name” is a valid and unique identifier. Make sure the element is visible and readable before attempting any action. Table of contents Keyword Description Declaration Remarks Restriction

verify text {string} is present in desktop window element {string} Read More »

change desktop default timeout to {string} seconds

Desktop step-Definition change desktop default timeout to {string} seconds Keyword Given, When, And, Then Description change the desktop default timeout to a given number of seconds Declaration Code Element Application Test Data Then change desktop default timeout to “30” seconds NILL NILL NILL Remarks NILL Restriction he specified “String Value” must represent a valid length (integer) for the random text. The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

change desktop default timeout to {string} seconds Read More »

copy value of property {string} for element {string} to variable {string}

Desktop step-Definition copy value of property {string} for element {string} to variable {string} Keyword Given, When, And, Then Description Will copy the value of a particular property of an element and store that inside a variable. Declaration Code Element Application Test Data Then copy value of property “AutomationId” for element “InputField” to variable “PropertyValue” ” InputField ID Input ” NILL NILL Remarks Inspect.exe should be present on your system to inspect the element and know the element property of desktop application under test (Inspect .exe is a part of Microsoft SDK). Restriction Element and application file should be in xml format. 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

copy value of property {string} for element {string} to variable {string} Read More »

copy value of property {string} for element {string} to clipboard

Desktop step-Definition copy value of property {string} for element {string} to clipboard Keyword Given, When, And, Then Description Will copy the value of a particular property of an element and add that text to clipboard Declaration Code Element Application Test Data Then copy value of property “AutomationId” for element “InputField” to clipboard ” InputField ID Input ” NILL NILL Remarks Inspect.exe should be present on your system to inspect the element and know the element property of desktop application under test (Inspect .exe is a part of Microsoft SDK). Restriction Element and application file should be in xml format. 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

copy value of property {string} for element {string} to clipboard Read More »

replace ?changeHere? text with {string} in desktop element value of name {string}

Desktop step-Definition replace ?changeHere? text with {string} in desktop element value of name {string} Keyword Given, When, And, Then Description Will replace the text of the element value with a string in the desktop Declaration Code Element Application Test Data Then replace ?changeHere? text with text “StoryRandomName” in element value of name “NewStoryName” ” NewStoryName XPATH //span[contains(text(),”?changeHere?”)] ” NILL NILL Remarks In this step you can change a specific text of a element with user defined text. Restriction Ensure that “element_name” is a valid and unique identifier for the element, you want to replace the text. Make sure the element is visible and text is readable before attempting any action. The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

replace ?changeHere? text with {string} in desktop element value of name {string} Read More »

close file explorer with name {string}

Desktop step-Definition close file explorer with name {string} Keyword Given, When, And, Then Description close the explorer window whose name is passed Declaration Code Element Application Test Data Then close file explorer with name “Program Files” NILL NILL NILL Remarks NILL Restriction The given location should be a valid file path. Table of contents Keyword Description Declaration Remarks Restriction

close file explorer with name {string} Read More »

open file explorer to navigate to {string} location

Desktop step-Definition open file explorer to navigate to {string} location Keyword Given, When, And, Then Description open a new window of file explorer and navigate to the given location Declaration Code Element Application Test Data Given open file explorer to navigate to “C:Program Files” location NILL NILL NILL Remarks NILL Restriction The given location should be a valid file path Table of contents Keyword Description Declaration Remarks Restriction

open file explorer to navigate to {string} location Read More »

try finding text {string} on element {string} for max {string} times using ocr on desktop application

Desktop step-Definition try finding text {string} on element {string} for max {string} times using ocr on desktop application Keyword Given, When, And, Then Description wait for given text on specified element for given number of times Declaration Code Element Application Test Data Then try finding text “SoliteraTA” on element “InputField” for max “2” times using ocr on desktop application ” InputField ID Input ” NILL NILL Remarks Verifying text and element visibility when it is expected to be present, is important for UI testing. Restriction Ensure that “element_name” is a valid and unique identifier for the element on you want to verifing text. Make sure the element is visible and readable before attempting the any action. Table of contents Keyword Description Declaration Remarks Restriction

try finding text {string} on element {string} for max {string} times using ocr on desktop application 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