Web keywords are commands used by Opkey to interact with various web elements like buttons, input fields, and content verification.
How to use Keywords?
Keywords are used by calling them in a test step and adding the input and expected output data values. If you want to capture the dynamic objects, you can also add properties of the object in the test object column.
Let's understand this with an example of using the AccessibilityCheckPointSettings keyword.
AccessibilityCheckPointsSettings
Accessibility Testing is a subset of Usability Testing and it is performed to ensure that the application being tested is usable by people with disabilities like hearing, color blindness, old age, and other disadvantaged groups.
This keyword sets the prerequisites for the Accessibility Test. It takes the report name of the Accessibility Test and the location where the Accessibility Report of a page after creation will be stored.
It will check the Accessibility of the current page and will generate the Accessibility Report of that particular page at the location or path given by the user.
For example, If you want to check the accessibility of a page, you can use the following steps :-
1. Add a new step in your test case by clicking the + icon at the top. Search this keyword and click on the search result to add it to the new test step.
2. Now add the input parameters (Report name and Report file path) in the input field. Click on the Input Parameter tab arrow and enter the details.
Suppose you want to set the prerequisites for the Accessibility Test then, here is how you will use the AccessibilityCheckPointsSettings keyword.
AccessibilityCheckPointsSettings--
For example - Report Name - ABC
Report Folder Path - /ABC/ast/DriveD
Note:
We've shown tables after the image, illustrating the need for Test Objects, Input Data, and Output Data values. These are filled based on keyword requirements in the test case, as seen in the image. Similar tables are provided for each keyword.
In this Keyword, adding a Test Object argument is not required.
Input Data
Output Data
Error conditions
If argument data is missing, the debug information will display the message "Argument(s): (ReportName; ReportFolderPath) is/are blank."
Please go through the list of Web keywords by clicking the given below link
List of Keywords - Web 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