Using Desktop Keywords - Opkey New UI

Opkey's Desktop keywords are commands to facilitate the automation of desktop application testing scenarios. 


Let's understand this with an example of using the Win_ClearEditField keyword.

Win_ClearEditField

This keyword clears the value of the specified Edit field. It takes the Edit field Object as an Object Input argument. It does not take any Data Input Arguments.


For example, if you want to clear the value in the selected edit field, you can use the following steps:- 

 

1. Add a new step in your test case by clicking the icon on the panel as depicted in the image below. Search for this keyword and click on the search result to add it to the new test step. 




Now add the input parameters in the input field by selecting the pencil icon




Click on the arrow to proceed to the next window to edit object data of the step.




Test Objects are filled as per the keyword requirement used in the test case as shown in the image below. 



  

Input Arguments


Object Input Arguments

Required?

Description

Object

Yes

This keyword takes an Edit Field object as an object input argument.


Data Input Arguments

Required?

Description

Data

No

This keyword doesn’t take any data input argument.



Output

 

True

If the keyword passes successfully

False

If the keyword fails




Common Error conditions

Scenarios

Error Message

Debug Information

When the object is not given

 

Argument Data Missing (-13200)

Data not provided for argument: 'Object'. Expected StaticValue was empty.

When the keyword is used without using Web_LaunchApplication Keyword before it

Argument Data Missing (-13200)

Insufficient Privileges (-14100)

Object not found

-plugin-unable-to-take-screenshot-




Please go through the list of Dekstop keywords by clicking here


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article