Desktop application operations – Page 5 – SoliteraTA

SoliteraTA

Desktop application operations

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 »

if desktop element {string} is found then click on it else do nothing

Desktop step-Definition if desktop element {string} is found then click on it else do nothing Keyword Given, When, And, Then Description check for the first element, if first element is found then do nothing. Declaration Code Element Application Test Data Then if desktop element “BlankWorkbook” is found then click on it else do nothing BlankWorkbook NAME Blank workbook NILL NILL Remarks NILL 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

if desktop element {string} is found then click on it else do nothing Read More »

if element {string} is not found on desktop window then click on element {string}

Desktop step-Definition if element {string} is not found on desktop window then click on element {string} Keyword Given, When, And, Then Description check for the given element, if element is not found then click on the specific element Declaration Code Element Application Test Data Then if element “A1_Cell” is not found on desktop window then click on element “BlankWorkbook” A1_Cell NAME A1 BlankWorkbook NAME Blank workbook 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

if element {string} is not found on desktop window then click on element {string} Read More »

click on current pointer location in desktop window

Desktop step-Definition click on current pointer location in desktop window Keyword Given, When, And, Then Description click on the current pointer location in the desktop window  Declaration Code Element Application Test Data Then click on current pointer location in desktop window NILL NILL NILL Remarks This step performs a click action on the current pointer location within the desktop window. Restriction The current desktop window should be in active position. Table of contents Keyword Description Declaration Remarks Restriction

click on current pointer location in desktop window 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