What is the difference between Selenium IDE and Webdriver?
First of all you should understand your automation needs and then only make a decision.
Let’s go through different variants of Selenium, this would make it easy for you to understand IDE and Webdriver.
- Selenium IDE -
- It’s a record and play tool.
- Supports Firefox only: Comes as plugin with Firefox only, so not other browsers are supported.
- Coding is not required: if you want to automate using this tool. It will record your tests and generate html scripts for you.
- One can’t add coding logic in script: It can only be used for some very basic automation. As you cannot write your own logic or you won’t be able to put conditions or loops in your automation test script.
- No code re-usability: As we cannot create methods in ide scripts which are in html.
- Maintainability is quite high: Maintainence effort is quite high in IDE. If there are any changes in your application/software it would impact your automation scripts heavily.
- You can click on this link to see IDE sample script - Selenium IDE Sample Script With Most Commonly Used Commands
- Selenium Webdriver - Now this is what world is talking about. Even the study plan which I’m going to share is for Selenium Webdriver. It’s the successor of RC.
- It requires coding.
- Open Source
- It supports Java, C#, PHP, Python, Perl, Ruby.
- Supports almost every browser: ff, chrome, ie, safari, opera.
- Cross Platform: Supports every platform like Windows, Linux, Mac.
- You can achieve code-re-usability.
- Automation maintainence effort is less.
- You can find Webdriver sample script here - First Selenium Webdriver Script - A sample script which covers all basic Java Webdriver commands
I hope now you would be in a position to take decision between Selenium IDE and Webdriver. I would definitely vote to go for Selenium Webdriver if your project is long term.
You can also follow this post to learn webdriver - How to learn Selenium Webdriver on yourself online
Hope it helps!
Feel free to ask queries or share your thoughts in comments or email me. Happy Learning! :)