Selenium IDE supports autocomplete mode when creating tests. This feature serves two purposes.
- It helps any tester to enter the commands
- It does not the user to enter the invalid commands.
Features of Selenium IDE:
- The Selenium IDE supports both chrome and Firefox
- It has good and improved locator functionality.
- Parallel execution of tests using selenium command line runner.
- It provides provision for control flow statements.
- It has feature of automatically waits for page loading.
- The new version supports code exports.
How to install selenium Ide in chrome:
- First open Google search page then search selenium ide for chrome.
- Click on first option chrome.google.com
- Then an extension of Selenium IDE is opened with an option add to chrome.
- When you click the button it shows screen saying Selenium IDE has been added to your chrome.
- This icon shows that the selenium has added to the chrome.
- Same procedure can be followed with the Firefox browser to install selenium ide.
- When you click on the icon it open a window.
How to write the simple test case in Selenium Ide
- Open the selenium Ide window.
- Click on the option record a new project.
- Provide the name of the project.
- It asks for the base URL. Provide the URL a demo source as orangeHRM and click start recording.
- The project starts recording and it provides many features. When the login page of the website is opened. We can see the recording option on the screen as well in the selenium ide. Whatever the operations is performed on the website screen will be recorded in the selenium ide.
- One of the important feature is when we right click on the website it provides an option as selenium ide when you right click on the selenium ide it provides certain options like verify, mouse over etc. When you click any option simultaneously it does in the IDE.
- Click on Login page and enter the dashboard then logout.All those operations are recorded in the IDE.
- If we need any details of the elements recorded can be provided in the IDE and verified as well.
- When you click on command type we can see all details are given in the ide and one important feature of selenium is when we click on the option target. We get many locators. If in case one locator does not work we can have multiple options.
Usually people who work with selenium would know that this is a nightmare sometimes locators break if we are using multiple browsers then the locators work on one browser and does not work on another.
- When you click on the reference option it provides all the details of a particular command clicked.
- We can save the project create new project and delete project by the options provided on the right corner of the window.
- We have to stop recording and then run the project by clicking the run button.