Using Selenium JavaScript keyword - Opkey New UI

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.


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.

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.


Report Name


Report Folder Path


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



This keyword does not require any Object input argument.

Input Data

 Input Data Required




* It is of String type.

* It takes the name of the report to be created.


* It is of String type.

* It takes the path(location) where the Accessibility Report will be saved after creation.


Output Data


Output value

If the keyword passes successfully


if there is an error


Common Error conditions


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

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article