Desktop application operations – Page 2 – SoliteraTA

SoliteraTA

Desktop application operations

drag desktop element “element_name” into another desktop element “element_name” using image identification

Desktop step-Definition drag desktop element “element_name” into another desktop element “element_name” using image identification Keyword Given, When, And, Then Description Will drag first element into second element and both elements will be identified by image Declaration Code Element Application Test Data Then drag element “Image1” into another element “Image2″ using image identification Image1 IMAGE_REPO Image_Folder_Name.Uploaded_Image_Name.Cropped_Image1_Name Image2 IMAGE_REPO Image_Folder_Name.Uploaded_Image_Name.Cropped_Image2_Name 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. This step definition drag on an image with the name “element_name” 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 dragable before attempting the drag action. Table of contents Keyword Description Declaration Remarks Restriction

drag desktop element “element_name” into another desktop element “element_name” using image identification Read More »

hover mouse to desktop element “element_name” and perform click using image identification

Desktop step-Definition hover mouse to desktop element “element_name” and perform click using image identification Keyword Given, When, And, Then Description Will hover mouse to element identified by image and perform click. Declaration Code Element Application Test Data Then hover mouse to element “Image1″ and perform click using image identification Image1 IMAGE_REPO Image_Folder_Name.Uploaded_Image_Name.Cropped_Image1_Name NILL NILL Remarks This step definition hover the mouse over an image with the name “element_name” in the desktop window. Restriction Make sure element name is correct and visible on the screen. Confirm that it correctly identifies the visibility state of the element. Table of contents Keyword Description Declaration Remarks Restriction

hover mouse to desktop element “element_name” and perform click using image identification Read More »

hover mouse to desktop element “element_name” using image identification

Desktop step-Definition hover mouse to desktop element “element_name” using image identification Keyword Given, When, And, Then Description  Will hover mouse to element identified by image Declaration Code Element Application Test Data Then hover mouse to element “Image1″ using image identification Image1 IMAGE_REPO Image_Folder_Name.Uploaded_Image_Name.Cropped_Image1_Name NILL NILL Remarks This step definition hover the mouse over an image with the name “element_name” in the desktop window. Restriction Make sure element name is correct and visible on the screen. Confirm that it correctly identifies the visibility state of the element. Table of contents Keyword Description Declaration Remarks Restriction

hover mouse to desktop element “element_name” using image identification Read More »

right click on desktop element “element_name” using image identification

Desktop step-Definition right click on desktop element “element_name” using image identification Keyword Given, When, And, Then Description Will right click on the desktop element using image identification Declaration Code Element Application Test Data Then right click on element “Image1″ using image identification Image1 IMAGE_REPO Image_Folder_Name.Uploaded_Image_Name.Cropped_Image1_Name NILL NILL Remarks This step definition clicks on an image with the name “element_name” in the desktop window. Restriction Make sure element name is correct and visible on the screen. Confirm that it correctly identifies the visibility state of the element. Table of contents Keyword Description Declaration Remarks Restriction

right click on desktop element “element_name” using image identification Read More »

click on desktop window element at current cursor location for {string} times

Desktop step-Definition click on desktop window element at current cursor location for {string} times Keyword Given, When, And, Then Description Will click on the current desktop window multiple times Declaration Code Element Application Test Data Then click on desktop window element at current cursor location for “5” times NILL NILL NILL Remarks NILL Restriction Make sure the element is visible and clickable Table of contents Keyword Description Declaration Remarks Restriction

click on desktop window element at current cursor location for {string} times Read More »

check timer for desktop application is within {string} milliseconds

Desktop step-Definition check timer for desktop application is within {string} milliseconds Keyword Given, When, And, Then Description After stopping the timer will check if the given value is inside the elapsed time or not. Declaration Code Element Application Test Data Then check timer for desktop application is within “15000” milliseconds ” InputField XPATH //input[@id=”Input”] ” NILL NILL Remarks NILL Restriction The desktop window should be accessible and in focus. The timer must be start before using this step def. Table of contents Keyword Description Declaration Remarks Restriction

check timer for desktop application is within {string} milliseconds Read More »

stop timer for desktop application

Desktop step-Definition stop timer for desktop application Keyword Given, When, And, Then Description Stop the already started timer Declaration Code Element Application Test Data Then stop timer for desktop application NILL NILL NILL Remarks NILL Restriction The desktop window should be accessible and in focus. The timer must be start before using this step def Table of contents Keyword Description Declaration Remarks Restriction

stop timer for desktop application Read More »

get NativeWindowHandle from desktop application of element {string} and store as {string}

Desktop step-Definition get NativeWindowHandle from desktop application of element {string} and store as {string} Keyword Given, When, And, Then Description Will get the native window handle of the given element, try to pass the top element so that It can be used to switch to that window later on. Declaration Code Element Application Test Data Then get NativeWindowHandle from desktop application of element “InputField” and store as “ProgramFiles” ” InputField XPATH //input[@id=”Input”] ” NILL NILL Remarks This step is used to switch on the native window of the desktop application by using their top element. Restriction Element and application file should be in xml format.  The desktop window should be accessible and in focus. Ensure that “element_name” is a valid and unique identifier. Table of contents Keyword Description Declaration Remarks Restriction

get NativeWindowHandle from desktop application of element {string} and store as {string} Read More »

switch focus to desktop window whose NativeWindowHandle is {string}

Desktop step-Definition switch focus to desktop window whose NativeWindowHandle is {string} Keyword Given, When, And, Then Description switch focus to desktop window element, whose Native window handle has been passed. Declaration Code Element Application Test Data Then switch focus to desktop window whose NativeWindowHandle is “NativeWindowName” NILL NILL NILL Remarks This step definition switches the focus to a window with the specified class name “String Value” and ensures that the switch is completed within the specified maximum time. Restriction The window with the specified class name “String Value” should be open and accessible. The “max” value should be a valid time (in milliseconds) for the maximum waiting time. Table of contents Keyword Description Declaration Remarks Restriction

switch focus to desktop window whose NativeWindowHandle is {string} Read More »

start the server

Desktop step-Definition start the server Keyword Given, When, And, Then Description Will start the appium and Winapp driver, IF you use this you have to switch to application you want to work on Declaration Code Element Application Test Data Then start the server NILL NILL NILL Remarks This step sends the specified text to a desktop window element using the image path specified by “String Value.” Restriction The specified image path should be valid and accurately represent the target element. The desktop window should be accessible and in focus. Table of contents Keyword Description Declaration Remarks Restriction

start the server 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