Let us record some tests with Selenium IDE:
Test – 1:
- Open the browser and navigate to SugarCRM Login page
- Login to application with username – admin and password
- Click on Accounts tab
- Click on Create Account link
- Fill all the necessary fields
- Click Save button
- Click View Accounts link
- Verify the Account created
Following are the Selenese commands we recorded in this test:
Each command does a particular action on the Application Under Test (AUT). In Selenium IDE, recording table has three columns: Command, Target, and Value. As you can see, some of the commands do have Value but all of them have Target. While recording actions on the AUT, Selenium does record Action, Object, and its Value. Because to play back the whole test it needs to do the same action whichever recorded during the “recording session”.
In the recorded test for the sixth command “type”, we need to change the value to some other name as it should be unique.
Now, we will try to play back the recorded test.
Yes!! it executed all the commands and created an account. We have tried recording and running our first test scenario using Selenium IDE.
Note: Please refer to my previous post for Installation of SugarCRM & Selenium IDE