Web keywords refer to the commands or actions that Opkey uses to interact with the elements of a web application.
Let's understand this with an example of using the keyword- AccessibilityCheckPointSettings used in Accessibility 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 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 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.
2. Now add the input parameters (Report name and Report file path) in the input field.
Suppose you want to set the prerequisites for the Accessibility Test then, here is how you will use the AccessibilityCheckPointsSettings keyword.
Select the keyword and click on the Set Data to enter the input parameters.
AccessibilityCheckPointsSettings--
For example - Report Name - ABC
Report Folder Path - /ABC/ast/DriveD
These are filled based on keyword requirements in the test case, as seen in the image shown below.
Click on the Set Data option respective to the keyword where you want to change its data.
Select Edit data of the step.
Test Objects are filled as per the keyword requirement used in the test case as shown in the image below.
For keywords where adding a Test Object argument is not required, we will not add.
Input Data
Input Data Required | Description |
Report Name
| * It is of String type. * It takes the name of the report to be created.
|
Report FolderPath | * It is of String type. * It takes the path(location) where the Accessibility Report will be saved after creation. |
Output Data
Condition | Output value |
If the keyword passes successfully | True |
If the keyword passes successfully | False
|
Error conditions
For conditions where Argument Data Missing a Debug Information message is displayed --Argument 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