Selenium Commands Explained

  • Selenium Commands

Selenese – Understanding Selenium Commands

Previuos Post: Installation of Selenium IDE

Selenium Commands also called as Selenese are the commands which runs in your tests. These commands are used to tell the automation engine to perform certain tasks. Check out the important updated topics in Selenium.

Using Selenese the Tester can test broken links, input fields, table data, forms submission.

There are three categories of Selenium commands, They are as follows,

  • Actions
  • Accessors
  • Assertions

Lets look in detail,


Selenium Commands

Actions commands are used to manipulate the state of the application. Some of those commands are as follows,

Click( ) – Used to click the current mouse location.

ClickAndHold ( )  – Used to click at the current mouse location



While Actions commands are used to manipulate, Accessors were made to evaluate the state of the application and once it did it will store the results in specific variables which are used in Assertions.

Few Accessors commands are as follows,

StoreAllButtons – Used to return the IDs of all the buttons.

StoreBodyText – Used to get the entire text of the page.



Assertions are like checkpoints that are used to verify the state of the application.

Assertions commands also has 3 modes of commands which are as follows,

  • Assert
  • Verify
  • WaitFor

If the Assert fails the test is completely aborted,  When the Verify fails it won’t abort but instead logs a failure and continuous the report.

WaitFor command waits for the some condition to become true .  If the condition fails it will halt the test till the current time out.


Recommended Reading :

Selenium Training Course Content – FREE PDF DOWNLOAD
Book your FREE DEMO session with our Selenium Trainer – Contact Us