What is Selenese?

What is Selenese?

Selenese is the set of selenium commands which are used to test your web application. Tester can test the broken links, existence of some object on the UI, Ajax functionality, Alerts, window, list options and lot more using selenese.

Selenium command tells selenium automation engine to perform certain tasks. Selenium commands are classified into 3 basic categories.

  1. ActionsCommands which change the state of the application are classified as actions, like click on some link, select some options on the page, select a value from drop down etc. When action is performed on page the test will fail if the action is not successful. Most common action action commands of selenium are:

    a. ClickAndWait
    b. Click

  1. AccessorsThese commands check the state of the application and stores the application state in some variable. Some examples of accessors are as follows.a. storeTitle
    b. storeTextAccessors are also used to evaluate whether the desired result is present on the page and store the result in the variable.


    a. storeTextPresent: If text is found on the page then it stores the boolean value as true else store false.
    b. storeElementPresent: If UI element is present on the page then it stores boolean value as true else stores false.

  2. AssertionsAssertions are used like the checkpoints or verification points in automation. Assertion verifies the state of the application conforms to the expected state.Example:a. verifyText
    b. verifyTitle
    c. assertText


Share via
Copy link
Powered by Social Snap