Selenium used in JavaScript involves using a set of commands and methods to interact with web elements and perform actions on web pages.
Let's understand this with an example of using the AccessibilityCheckpointSettings keyword.
AccessibilityCheckpointSettings
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, to do checkpoint settings in an application to make it accessible to users, we can use the following steps:-
1. Add a new step in your test case by clicking the + icon at the top.
Search AccessbilityCheckpointSettings and click on the search result to add it to the new test step.
![](https://s3-ap-south-1.amazonaws.com/ind-cdn.freshdesk.com/data/helpdesk/attachments/production/88056741941/original/mCBh867z6iTxPWBkM63MHP79mZvzsS-OTw.png?1713790182)
2. Click on the pencil icon to set the data for the keyword.
Suppose you want to set the prerequisites for the Accessibility Test then, here is how you will use AccessibilityCheckPointsSettings keyword.
AccessibilityCheckPointsSettings
Report Name | ABC |
Report Folder Path | ALS |
![](https://s3-ap-south-1.amazonaws.com/ind-cdn.freshdesk.com/data/helpdesk/attachments/production/88056744653/original/kZoeg2bwE-ZGN6DkhSYkXVlyY-xlvAr5jw.png?1713791142)
Note: We have illustrated the requirement of the Test Object, Input Data, and corresponding Output data values in the tables following this image. 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.
Test Object
Test Object Required | Description |
None | This keyword does not require any Object input argument. |
Input Data
Input Data Required | Description |
ReportName | * It is of String type. * It takes the name of the report to be created. |
ReportFolderPath | * 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 there is an error | False |
Common Error conditions
Scenarios | Error Message | Debug Information |
If the Data Input Argument is not given | Argument Data Missing | Argumnent(s): (ReprtName; ReportFolderPath) is/are blank. |
Now let's go through the list of various keywords to understand their functionality.
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