Selenium Commands Explained

Selenium Commands Explained

Selenese – Understanding Selenium Commands

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.

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

Accessors:

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:

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.