Step Defination – Page 17 – SoliteraTA

SoliteraTA

Step Defination

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 »

try finding text {string} on screen for max {string} times using ocr on desktop applications current window

Desktop step-Definition try finding text {string} on screen for max {string} times using ocr on desktop applications current window Keyword Given, When, And, Then Description wait for given text for given number of times Declaration Code Element Application Test Data Then try finding text “Text1” on screen for max “4” times using ocr on desktop applications current window NILL NILL NILL Remarks Verifying text visibility when it is expected to be present, is important for UI testing. Restriction NILL Table of contents Keyword Description Declaration Remarks Restriction

try finding text {string} on screen for max {string} times using ocr on desktop applications current window Read More »

return coordinates of {string} text through ocr on desktop application of {string} element and with {string} position and save starting coordinate as {string} and {string} and ending coordinate as {string} and {string}

Desktop step-Definition return coordinates of {string} text through ocr on desktop application of {string} element and with {string} position and save starting coordinate as {string} and {string} and ending coordinate as {string} and {string} Keyword Given, When, And, Then Description return the co-ordinates of specified text on specified element name with positions(i.e. TopMost|BottomMost|LeftMost|RightMost|index) and save starting co-ordinates as string & string and ending co-ordinates as string & string. Declaration Code Element Application Test Data When return coordinates of “Text1” text through ocr on desktop application of “InputField” element and with “TOPtMost” position and save starting coordinate as “x1” and “y1” and ending coordinate as “x2” and “y2″ ” InputField ID Input ” NILL NILL Remarks This step return the coordinate of specific text on the  desktop window element from their defined specific position Extracting text from specific locations on the UI allows for targeted validation. Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to extract specific text. Make sure the element is visible before attempting the action. Ensure that the location “element_name” is valid and accessible. Table of contents Keyword Description Declaration Remarks Restriction

return coordinates of {string} text through ocr on desktop application of {string} element and with {string} position and save starting coordinate as {string} and {string} and ending coordinate as {string} and {string} Read More »

return coordinates of {string} text through ocr on desktop application of {string} element with {string} position and save xcoordinate as {string} and save ycoordinate as {string}

Desktop step-Definition return coordinates of {string} text through ocr on desktop application of {string} element with {string} position and save xcoordinate as {string} and save ycoordinate as {string} Keyword Given, When, And, Then Description Will return the coordinates of specified text on an element name with specified positions(i.e. TopMost|BottomMost|LeftMost|RightMost|index) and save X coordinates as string and Y co-ordinates as a string. Declaration Code Element Application Test Data When return coordinates of “Text1” text through ocr on desktop application of “InputField” element with “RightMost” position and save xcoordinate as “x1” and save ycoordinate as “y1″ ” InputField ID Input ” NILL NILL Remarks This step return the coordinate of specific text on the  desktop window element from their defined specific position Extracting text from specific locations on the UI allows for targeted validation. Restriction Ensure that “element_name” is a valid and unique identifier for the element you want to extract specific text. Make sure the element is visible before attempting the action. Ensure that the location “element_name” is valid and accessible. Table of contents Keyword Description Declaration Remarks Restriction

return coordinates of {string} text through ocr on desktop application of {string} element with {string} position and save xcoordinate as {string} and save ycoordinate as {string} Read More »

scroll to the desktop window element {string} to make it visible on screen

Desktop step-Definition scroll to the desktop window element {string} to make it visible on screen Keyword Given, When, And, Then Description Will scroll to the specified element present in the desktop window to make it visible on the screen. Declaration Code Element Application Test Data Then scroll to the desktop window element “projectTimelineListItem” to make it visible on screen projectTimelineListItem XPATH //*[@Name=’Project timeline’ and @LocalizedControlType=’List Item’] NILL NILL Remarks This step scrolls the element with the name “element_name” to make it visible in the desktop window. Restriction The element with the name “element_name” should be accessible and scrollable in the desktop window. Ensure that “element_name” is a valid and unique identifier. Make sure the element is visible and clickable before attempting the any action. Table of contents Keyword Description Declaration Remarks Restriction

scroll to the desktop window element {string} to make it visible on screen Read More »

drag element {string} in desktop window to the element {string}

Desktop step-Definition drag element {string} in desktop window to the element {string} Keyword Given, When, And, Then Description Will drag the element with the specified element in the desktop window Declaration Code Element Application Test Data Then drag element “insertedRectangularShape” in desktop window to the element “F7_Cell” F7_Cell NAME F7 insertedRectangularShape XPATH //*[@Name=’Rectangle 1′ and @LocalizedControlType=’shape’] NILL NILL Remarks The element with the name “element_name” should be draggable, and it should be possible to drag it to the specified element in 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

drag element {string} in desktop window to the element {string} Read More »

move to the element {string} on desktop window

Desktop step-Definition move to the element {string} on desktop window Keyword Given, When, And, Then Description move to the element on the desktop window Declaration Code Element Application Test Data Then move to the element “FormulaBar” on desktop window FormulaBar NAME Formula Bar NILL NILL Remarks The element with the name “element name” should be movable, and it should be possible to move it in 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

move to the element {string} on desktop window Read More »

right click on desktop window element {string} with coordinates {string} and {string}

Desktop step-Definition right click on desktop window element {string} with coordinates {string} and {string} Keyword Given, When, And, Then Description Will right click on an element in the desktop application based on X and Y coordinates Declaration Code Element Application Test Data Then right click on desktop window element “mainProjectDirectory” with coordinates “500” and “400” ” mainProjectDirectory XPATH (//span[@name=’directoryName’])[1] ” NILL NILL Remarks The element with the name “element_name” should be clickable, and it should be possible to click it to the specified element in the desktop window. Working when we are passing coordinates after calculating from focused element in both the cases, second x,y coordinates will be calculated from first x,y coordinates 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

right click on desktop window element {string} with coordinates {string} and {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