Using Selenium JavaScript Keyword - Opkey Classic

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.


1. 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.


2. Click on the downward arrow in the input data column of the step to open the input data window for the keyword.


3. Add the input data as shown below and click on OK button. 


Suppose you want to set the prerequisites for the Accessibility Test then, here is how you will

use the AccessibilityCheckPointsSettings keyword.


AccessibilityCheckPointsSettings 

Report Name

ABC

Report Folder Path


ALS






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 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