Selenium Demo
...
Duration
20 hoursCourse Price
$ 399.004.5 (23)
1) Automation
2) Automation Approaches
3) Basics Of Java
4) IDE – Integrated Development Environment
Record & Play
Inserting Commands
Verification & Assertion
Hand On Exercise using Java Script
5) Testing using TestNG
Configure TestNG Project
TestNGAnnotations
Parameterization in TestNG
Run Test in Batch
6) Selenium WebDriver
Command to Openurl in FireFox, Chrome, Internet Explorer
XPath
CSS Selector
Get All List from page
Implicit Wait
Explicit Wait
Window Handle
7) Read/Write Data
8) Automation Framework - Types
9) Automation Framework- Advanced Hands On
10) Automation Scripts Creation –Live Project
1) Automation
2) Automation Approaches
3) Basics Of Java
4) IDE – Integrated Development Environment
Record & Play
Inserting Commands
Verification & Assertion
Hand On Exercise using Java Script
5) Testing using TestNG
Configure TestNG Project
TestNGAnnotations
Parameterization in TestNG
Run Test in Batch
6) Selenium WebDriver
Command to Openurl in FireFox, Chrome, Internet Explorer
XPath
CSS Selector
Get All List from page
Implicit Wait
Explicit Wait
Window Handle
7) Read/Write Data
8) Automation Framework - Types
9) Automation Framework- Advanced Hands On
10) Automation Scripts Creation –Live Project
Automation testing uses automation tools to write and execute test cases, no manual involvement is required for executing an automated test suite. Testers prefer automation tools to write test scripts and test cases and after that group into test suites.
Automation testing authorize the use of specialized tools to automate the execution of manually designed test cases without any human intervention. Automation testing tools can access the test data, controls the execution of tests and it also compares the actual result against the expected result. As a result, it generates detailed test reports of the system under test.
Selenium is a portable framework for software testing. It is an open source testing suite to test web applications. This tool facilitates with a playback tool in order to authoring functional test. It is one of the most commonly used open source web ui automation testing tool. Selenium also supports automation across different browsers, platforms, and programming languages.
Selenium is not just a single tool but a suite of software's. And each have a different approach to support automation testing. It consist of four major components:
Selenium Integrated Development Environment (IDE)
Selenium Remote Control (Now Deprecated)
WebDriver
Selenium Grid
Programming Languages: C#, Java, Python, PHP, Ruby, Perl, JavaScript.
Operating Systems: Android, iOS, Windows, Linux, Mac, Solaris.
Browsers: Google Chrome, Mozilla Firefox, Internet Explorer, Edge, Opera, Safari, etc
The various tests that are supported by Selenium are:
Functional Testing
Regression Testing
Sanity Testing
Smoke Testing
Responsive Testing
Cross Browser Testing
UI testing (black box)
Integration Testing
Selenium IDE ( integrated Develoment Environment) is a firefox plugin. It is the latest upgrade in selenium version and it is the simplest framework in the Selenium suite.. It is implemented as Firefox extension. It allows us to record and playback the scripts. It allows testers to export recorded scripts in many languages like HTML, Java, Ruby, RSpec, Python, C#, JUnit and TestNG.
Selenium IDE has limited scope, and the generated test scripts are not very robust, and portable.
Selenium is used to automate functional tests and can be integrated with automation test tools such as Maven, Jenkins, &Docker to achieve continuous testing. It can also be integrated with tools such as TestNG, &JUnit for managing test cases and generating reports.
XPath is also called as XML Path. It is a language used to query XML documents. It is used to locate elements in selenium. XPath consists of a path expression along with some conditions. Here, we can easily write XPath script/query to locate any element in the webpage. It is developed to allow the navigation of XML documents. The key factors that it considered while navigating are selecting individual elements, attributes, or some other part of an XML document for specific processing. It also produces reliable locators. Some other important points about XPath are as follows.
XPath is a language used for locating nodes in XML documents.
XPath can be used as a substitute when you don't have a suitable id or name attribute for the element you want to locate.
XPath provides locating strategies like:
XPath Absolute
XPath Attribute?
A framework is a set of rules or best practices which we can follow in a systematic wayin order to achieve the desired results. The different types of automation frameworks are:
Keyword Driven Testing Framework
Hybrid Testing Framework
Behavioural Driven Framework
Selenium WebDriver AKA Selenium 2 is a browser automation framework. It accepts commands and sends them to a browser. it is used to distribute the test execution on various platforms and environment simultaneously. It is implemented through a browser-specific driver. It controls the browser by directly communicating with it.
Selenium WebDriver supports Java, C#, PHP, Python, Perl, Ruby.
The following syntax can be used to launch the browser corresponding to the system’s operating system:
WebDriver driver = new FirefoxDriver();
Or
WebDriver driver = new InternetExplorerDriver();
Or
WebDriver driver = new ChromeDriver();
Page Object Model is a Design Pattern. It has become popular in Selenium Test Automation. It is widely used design pattern in Selenium for enhancing test maintenance and reducing code duplication. Page object model (POM) is used in any kind of framework like modular, data-driven, keyword driven, hybrid framework etc.
A page object is an object-oriented class which serves as an interface to a page of your Application Under Test(AUT). The tests then use the methods of this page object class when they need to interact with the User Interface (UI) of that page. The benefit is that if the UI changes for the page, the tests themselves don’t need to change, only the code within the page object needs to change. Subsequently, all changes to support that new UI is located in one place.
Code reusability – We could achieve code reusability by writing the code once and we can use it in different tests.
Code maintainability – There is a clean separation between test code and page specific code such as locators and layout which becomes very easy to maintain code. It enhances test maintenance and reduces code duplication.
Object Repository – Each page will be defined as a java class. All the fields in the page will be defined in an interface as members. The class will then implement the interface.
Readability – Improves readability due to clean separation between test code and page specific code.
Selenium is widely used than QTP because:
Selenium is an open-source tool, whereas QTP is a profitable tool.
Selenium is used specifically for testing web-based applications, while QTP can be used for testing client–server applications too
Selenium supports multiple browsers like Firefox, IE, Opera, Safari, etc. and has multiple operating systems compatibility too. Selenium-supported OS platforms are Windows, Mac, Linux, etc. On the other hand, QTP is limited to Internet Explorer on Windows
Selenium supports multi-programming language compatibility. Languages supported by Selenium are Python, Ruby, Perl, etc. whereas QTP supports only VBScript.
Four parameters that need to be passed in Selenium are:
Host
Port number
Browser
URL
Feature |
Selenium |
Quick Test Professional (QTP) |
Browser compatibility |
It supports almost all popular browsers: Firefox, Chrome, Safari, Internet Explorer, Opera, etc. |
QTP supports Internet Explorer, Firefox, and Chrome. It only supports Windows operating system |
Distribution |
It is distributed as an open-source tool and is freely available |
It is distributed as a licensed tool and is commercialized |
Application under test (AUT) |
It supports the testing of web-based applications only |
It supports the testing of both web-based and Windows-based applications |
Object repository |
Object repository needs to be created as a separate entity in Selenium |
QTP automatically creates and maintains the object repository |
Language support |
It supports multiple programming languages like Java, C#, Ruby, Python, Perl, etc. |
It supports only VBScript |
Vendor support |
As Selenium is a free tool, users would not get the vendor’s support in troubleshooting issues |
Users can get the vendor’s support if they face any issues. |