To use keywords, include them in a test step and provide input and expected output data.
For instance, consider using the PasteTextOnEditBox keyword.
This keyword will copy the text from the clipboard and paste it on an EditBox object. It takes an EditBox object as an Object input argument. This keyword is mostly used in situations where you want to copy any text from the clipboard and paste it into the Edit Box.
Note: The Visual-Specific keywords work on the image and tolerance property of the object and are used for image-based testing.
Let's follow the steps to add this keyword.
1. Add a new step in your test case by clicking the + icon at the top. Search PasteTextOnEditBox and click on the search result to add it to the new test step.
2. Now add an Object Input Argument. Here we will add an Edit Box object as an Object input argument.
3. Now add input argument as Match Score which will allow you to add your custom match score to pass or fail the Keyword while executing the run. The script will run unaltered if no Match Score is provided as the Input Value. The rest keywords will run as usual.
These values are filled as per the requirement of the keyword used in the test case as shown in the image below. We have given similar tables for each keyword for illustration.
In this Keyword, adding a Test Object argument was required. Hence, we have mentioned it is required.
Test Object
Input Data
Output Data
Condition | Output Value |
If the keyword passes successfully | True |
If keyword fails | False |
PasteTextOnEditBox
Fetch the Edit Box Object “Username” and then capture its image by clicking on the icon. Save the Image property of the object and set its Tolerance Property. Check the Is Used checkbox only for Image and Tolerance properties.
To use keywords, include them in a test step and provide input and expected output data.
For instance, consider using the PasteTextOnEditBox keyword
This keyword will copy the text from the clipboard and paste it on an EditBox object. It takes an EditBox object as an Object input argument. This keyword is mostly used in situations where you want to copy any text from the clipboard and paste it into the Edit Box.
Note: The Visual Specific keywords work on the image and tolerance property of the object and are used for image-based testing.
Let's follow the steps to add this keyword.
1. Add a new step in your test case by clicking the + icon at the top. Search PasteTextOnEditBox and click on the search result to add it to the new test step.
2. Now add Object Input Argument. Here we will add an Edit Box object as Object input argument.
3. Now add input argument as Match Score which will allow you to add your custom match score to pass or fail the Keyword while executing the run. The script will run unaltered if no Match Score is provided as the Input Value. The rest keywords will run as usual.
These values are filled as per the requirement of the keyword used in the test case as shown in the image below. We have given similar tables for each keyword for illustration.
In this Keyword, adding a Test Object argument was required. Hence, we have mentioned it is required.
Test Object
Input Data
Output Data
Condition | Output Value |
If the keyword passes successfully | True |
If keyword fails | False |
PasteTextOnEditBox
Fetch the Edit Box Object “Username” and then capture its image by clicking on the icon. Save the Image property of the object and set its Tolerance Property. Check the Is Used checkbox only for Image and Tolerance properties.
Please go through the list of list of Visual Plugin keywords.
List of Opkey Keywords - Visual Plugin keywords
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article