Selenium is an open source framework for automating web browsers. It is a primary preference among testers for cross browser testing and is considered as one of the most reliable systems for web application automation testing.
SELENIUM COMPONENTS

SELENIUM IDE
Selenium IDE allows users to record interactions with web applications. It also helps to simplify the testing process.
• Selenium IDE works on various browsers for testing (Browser check).
• Users can record how they use a web application (Record).
• Users can look at different parts of web page and set up how to work with them (Check Elements).
• Selenium IDE automatically repeats what you recorded earlier.
• Spotting errors and fixing them.
• Tester can save tests created in selenium IDE in different programming language and use them with other selenium tools (Exporting tests).
SELENIUM RC
Selenium Remote Control was one of the earliest Selenium tools. It allowed testers to write automated web application tests in various programming languages like java, C#, etc.
• WebDriver interacts directly with browser, bypassing the need for an intermediary server like selenium RC, which helps for faster test execution and improved performance (Better Performance).
• Support for modern web technologies such as HTML5, CSS3 and JavaScript framework.
SELENIUM WEBDRIVER
Selenium WebDriver offers a programming interface to interact with web browsers, allowing developers and testers to automate browser actions seamlessly.
• Supports parallel test execution.
• It provides comprehensive set of APIs for navigating through web pages, interacting with web elements, managing windows, handling alerts and etc.
• It directly communicates with browsers.
SELENIUM GRID
Selenium grid allows running test in parallel on multiple machines and managing different browsers.
• Ability to run tests on remote browser instance.
• Runs test on different operating systems.
ADVANTAGES OF SELENIUM
• Open Source.
• Cross browser testing.
• Supports Multiple programming languages (java, C#, python, JavaScript, PHP, Pearl).
• Strong community.
• Frequently updated versions are available to support latest browsers and programming languages.
DISADVANTAGES OF SELENIUM
• Not supporting Windows based application for automation.
• Can’t automate caption.
• It does not follow any development approaches like TDD or BDD.
Why do we use Selenium for Automation?
• Selenium is an open-source framework which makes it available for wide range of users and organizations.
• Selenium supports various web browsers (Chrome. Firefox, Safari, Edge, etc.) and operating systems (Windows, macOS, Linux).
• Selenium provides APIs for multiple programming languages.
• Supports CI/CD.
• As a widely adopted tool selenium benefits for a large and active community.
What is the Relevance of Selenium in automation testing using python?
Pythons simple and clear syntax make it an excellent choice for writing selenium test scripts. This helps tester for creation of more maintainable and readable automation code compared to other programming languages.
PyTest is a popular framework used with selenium for test execution, offering features like parallel execution.
Selenium integrates well with continuous Integration/Continuous Deployment pipelines.
Selenium webDriver, core components enable direct interaction with web browsers like Chrome, Firefox, safari and Edge. This allows tester to simulate real user actions.
Cross-Browser and Cross-Platform compatibility.
Python code is easily understandable compared to other programming languages.
Top comments (0)