![]() |
Learn to ask Questions |
Selenese is set of commands used by selenium to automate the web application testing. These commands are divided into 3 parts which is interpreted by selenium core (engine of selenium) to perform action on application under test. Particularly these commands guides Selenium what action to do. We can say that these combination of these commands creates our test script.
3A’s
Selenese is a combination of as 3A’s :-
Action – Accessor – Assertion
Example:-
![]() |
Editor view of IDE, with Command highlighted |
![]() |
Selenese command comparison in IDE and WebDriver |
Meaning:-
Action: –
Commands used to change the state of the AUT(Application under Test), like click on some link, type a value in edit box, select some options on the page, select a value from drop down etc.
When action is performed on AUT the test will fail if the action is not achieved.
Eg:- Click,close ,doubleclick
Accessor:-
This command check the state of the application and save the application state in some variable. It can be used for automatic generation of assertions.
Eg:- storeTitle,storeElementPresent
Assertions:-
Are very similar to checkpoint in UFT/QTP. Assertion verifies the state of the application matches it with the expected state and generates the True/False result.
Eg :- verifyText, assertText
Difference between assert and Verify?
Assert :- Incase we are using this command, test stops if it fails.
Verify :- will check the expected and actual values , and report the results but test will continue running.
Thus we can use a “assert” command to check that application is on the correct page and then we can use “verify” command to test the individual objects of page.
How to find command in IDE ?
In Editor of IDE -> Right click on any row ->Insert new command
![]() |
Insert new command in IDE |
Under command section type the initials for the command to be searched ,IDE will show commands help.
![]() |
Search for command |
For complete command reference
One reply on “Understanding the Selenese command in Selenium IDE?”
When I'm defining custom accessor using getFoo(locator, arg){…} and isFoo(locator, arg){..},
then, assertNotFoo command uses isFoo method.
But when I'm defining custom accessor using getFoo(locator, arg){..} or isFoo(locator, arg){…}
then, assertNotFoo command uses that getFoo or isFoo whatever defined.
As per defination of accessor, it will examine state and then save data. So I'm confused whether it uses IsFoo() for examine state and getFoo() to save data.
Can you please elaborate, what is difference between isFoo and getFoo method .. here Foo is name of accessor ?