|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.
Selenese is a combination of as 3A’s :-
Action – Accessor – Assertion
|Editor view of IDE, with Command highlighted|
|Selenese command comparison in IDE and WebDriver|
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
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.
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