The future is closer than you think. You can pay attention now or watch the transformation happen right in front of your eyes.
Learn AWS security from Expert. Book for Demo Session
Learn AWS SysOps Administrator from experts. Book now for free demo session
Learn AWS Solution Architect from Experts. Book now for free demo session
AWS DevOps Training and Placement in Chennai with Both Classroom and Online.
Best Social Medial Marketing course from Marketing expert. Enroll now for Free Demo Session.
Best Content Writing training from expert. Book now for Free Demo Session
Best SEO Training in Chennai from Industry Expert. Book for Free Demo Session now.
Best Digital Marketing Course in Chennai from Industry Experts. Book for Free Demo Session now.
Learn SQL from industry experts. Book for free demo session
Real Time MongoDB Training from Certified Experts. Book for free demo session now.
Learn Teradata Course from Top Class Talents. Book for free demo session now.
Real Time Oracle DBA Training from experienced DB Professionals. Call us for free demo session now.
BITA Academy provides the best Ruby on Rails training in Chennai
Learn UI UX Design from experts in 3 months
Learn PHP from Experts. Book For Free Demo Session
Hands on JavaScript Training from Industry Experts. Call for free demo session now.
Best Hands on Training in ReactJs from Industry Experts. Call us for free demo now.
Best Spring Training by industry experts to gain deep knowledge in advanced java.
Hands on Node.js Training in best price. Enroll now for free demo session.
Best Real Time Hibernate Training from Industry Experts
Web Design Training Course for Beginners and Experienced from Top Class Experts
Mean Stack Course for Corporate Professionals. Enroll for free demo Class now
Angular course with hands-on training session. Call us if you need free demo session.
Real Time Flutter Dart Training in Chennai from industry experts. Enroll now for free demo session.
Learn iOS Training in Chennai at BITA Academy and become a certified iOS Developer.
Learn Android Course from Industry Experts and become an Android Developer.
Learn from experts. Enroll now for free demo session.
Learn Ethical Hacking Course from Top Class Experts.
Best Cloud Security Course in Chennai for IT Professionals
Real Time Hands on SAP ABAP Training from industry experts
Real Time Hands on SAP FICO Training from Industry Experts
Learn Tableau From Experts. Book for Free Demo Session
Learn Power BI Tool From Expert. Book For Free Demo Session
Want to know more about PySpark.Lets hear what Industry Experts Say.
Learn Informatica Course to know more about data integration products.
Want to know what Blockchain is about? Enroll now for free demo session.
Do you want to learn Hadoop and its components. Enroll for free demo session now.
Want to Analyse,Process and Extract information from Complex Data Sets. Enroll for Big Data Course now
BITA provides C C++ Training in Chennai for college students and freshers.
Core Java Training Course in Chennai
Want to become a Full Stack Developer. Call us for a free demo session with our Industry Experts.
Java is most popular for Android smartphone apps. Get the Best Java Developer Course from us.
Advanced Open Source framework for mobile and web development. Register now for free demo session.
Python Scripting Course for Beginners from Industry Experts. Best Offers for College Students.
Learn J2EE if you want to gain deep knowledge in advanced java. Register now.
Hands on Penetration Testing Training. Book for Free Demo Session
Learn Playwright Automation to upgrade yourself. Book For Free Demo Session
Learn Katalon Studio from Experts. Book for free demo session
Learn Tosca Automation from professionals. Book for free demo session
Learn ReadyAPI training from expert. Book for free demo session
Real Time Hands on Security Testing Training from our industry experts. Enroll now for free demo session.
Portable framework for testing web applications. Register now to learn more about Test Automation.
Learn JMeter Course and know more about performance test for web apps. Register now.
Real Time Hands on QTP Training from industry experts. Enroll for free demo session now.
Hands on Load Runner Training to analyse the key components of the application. Enroll now.
Want to execute test cases manually with out any automations tools. Register for Manual Testing Course now.
Open Source Test Automation framework for hybrid and mobile web apps. Enroll now.
Automated UI Testing Tool to create and execute functional test. Enroll now to learn more.
Get started with Real Time REST API Testing Training course from our industry experts. Register now.
End to End Test Framework for Angular applications. Register now to hear more from our experts.
Learn from expert. Book for free demo session.
Learn from experts. Book for free demo session
Real Time Microstrategy Training for Professionals who wants to be an BI expert. Enroll for free demo session now.
Hands On Ab Initio Training from Industry Experts. Enroll now for free demo session.
Real Time Cognos Training from Industry Experts. Call us for free demo session.
Real Time AI Training from Industry Experts. Call us now for a free demo session
Real Time Data Science Training in Chennai from Industry Experts. Enroll now for free demo session.
Machine Learning focus on statistics and algorithms that is essential for AI apps. Enroll now.
Learn Data Science with R Programming from Industry Experts. Register now.
Real Time UiPath Training from Industry Experts. Enroll now for free demo session.
Learn Automation Anywhere and get deep knowledge about software bots. Call us for free demo session now.
Hands on Blue Prism Training from Industry Experts. Enroll for free demo session now.
RPA Technology derives business process automation based on artificial intelligence. Enroll now.
Master Mulesoft from Professionals. Book For Free Demo Session
Master Openshift from Expert. Book for Free Demo Session
Learn Azure Solution Architect from expert. Book now for free demo session
Learn Azure Administrator from Experts. Book for free demo session
Learn Microsoft Azure Developer Training from Experts. Book for Free Demo Session
Learn Azure Security from expert. Book for Free Demo Session
Best VMware Training Fom Expert. Book For Free Demo Session
Best Salesforce Analytic Training from Leading Analytics. Book now for Free Demo Session
Best Salesforce Admin Certification Training from Industry Expert. Book now for Free Demo Session
Best Salesforce Developer Training from Real time Developers. Book now for Free Demo Session
Hands on GCP Training from Cloud Expert. Book now for Free Demo Session
Hands On OpenStack Training in Chennai from experienced Professionals. Book a slot for a free demo session now.
Real Time Salesforce Developer Training from Industry Experts. Enroll now for free demo session.
Learn from experts. Book now for free demo session
Learn from experts. Enroll now for free demo session
Learn from experts. Enroll now for demo session
Learn from expert. Book for free demo session
Learn Excel From Expert. Book for Free Demo Session
Join kids program and cultivate your creativity
Best Workday Training in Chennai from Industry Experts. Call now for free demo session.
Real Time Docker Training from Industry Expert. Book now for free demo session.
Learn more about open source UNIX like OS from Industry experts. Register now.
Learn PERL to perform web development and system administration. Register now.
Let's hear what Industry Experts talk about DevOps Culture. Register now.
Vedic Maths Course for School Students and Kids to learn Maths in Simple ways. Register now
Placement Training for College Students and Freshers from Corporate Trainers. Enroll now.
Learn IoT Technology real time from experienced professionals. Register now for demo session.
Selenium is a suite of tools for automated web testing. It is composed of
Benefits of Automation testing are:
Exceptions in Selenium are similar to exceptions in other programming languages. The most common exceptions in Selenium are:
An exception test is an exception that you expect will be thrown inside a test class. If you have written a test case in such way that it should throw an exception, then you can use the @Test annotation and specify which exception you will be expecting by mentioning it in the parameters.
For Example:
@Test(expectedException = NoSuchElementException.class)
Do note the syntax, where the exception is suffixed with .class
Following are the barriers in Selenium.
We can’t test desktop application the usage of Selenium.
We can’t take a look at web services using Selenium.
For developing robust scripts in Selenium WebDriver, programming language knowledge is required.
We have to remember on external libraries and tools for performing tasks like – logging(log4J), testing framework-(testNG, JUnit), analyzing from external files(POI for excels) etc.
Page Object Model is a design pattern for creating an Object Repository for web UI elements. Each web page in the application is required to have it’s own corresponding page class. The page class is thus responsible for finding the WebElements in that page and then perform operations on those WebElements.
The advantages of using POM are:
Page Object Model is a design pattern for creating an Object Repository for web UI elements. Each web page in the application is required to have it’s own corresponding page class. The web page class is accordingly accountable for finding the Web Elements in that page and then perform operations on those Web Elements.
The advantages of the usage of POM are:
Selenium supports the following types of testing:
Selenium Grid is a tool which can distribute tests across multiple browsers or distinctive machines. It enables parallel execution of the test cases. Using this, we can configure to run hundreds of test cases at the same time as on separate devices or browsers.
There are number of benefits in the usage of the Selenium Grid.
A hub is analogous to a server that drives the parallel test execution on different machines.
XPath is used to locate the elements. Using XPath, we could navigate through elements and attributes in an XML document to locate web elements such as textbox, button, checkbox, Image etc in a web page.
No. Selenium webDriver uses browser’s native method to automate the web applications. Since web services are headless, so we cannot automate web services using selenium webDriver.
Selenium Webdriver can be used for performing automated functional and regression testing.
The different locators in Selenium are-
By .className, we can select all the element belonging to a particular class. e.g. ‘.red‘ will select all elements having class ‘red‘.
By #idValue, we can select all the elements belonging to a particular class. e.g. ‘#userId‘ will select the element having id – userId.
Soft Assert: Soft Assert collects errors during @Test
Soft Assert does no longer throw an exception when an assert fails and would proceed with the next step after the assert statement.
Hard Assert: Hard Assert throws an AssertException immediately when an assert statement fails and test suite continues with next @Test
Both sleep() and setSpeed() are used to delay the execution speed.
Both driver.get(“URL”) and driver.navigate().to(“URL”) commands are used to navigate to a URL passed as parameter.
There is a minor difference between the two commands-
FirefoxDriver is a Java class, and it implements in WebDriver interface.
SearchContext acts as the super interface of Web Driver.
Before looking how to handle Stale Element Reference Exception through Page Object Model. Let’s see what is Stale Element Reference Exception first.
Stale means old, decayed, no longer fresh. Stale Element means an old element or no longer available element. Assume there is an element that is found on a web page referenced as a WebElement in WebDriver. If the DOM changes then the WebElement goes stale. If we try to interact with an element which is staled then the StaleElementReferenceException is thrown.
Using sendKeys() method we can type text in a textbox-
Example – html/body/div/div[2]/div/div/div/div[1]/div/input
A relative XPath is a way of locating an element the usage of an XML expression starting from somewhere in the HTML document. There are one-of-a-kind methods of growing relative XPaths which are used for growing sturdy XPaths (unaffected by way of adjustments in other UI elements).
Example – //input[@id=’username’]
WebDriverWait is applied on a certain element with defined expected condition and time. This wait is only applied to the specified element. This wait can also throw an exception when an element is not found.
FluentWait can define the maximum amount of time to wait for a specific condition and frequency with which to check the condition before throwing an “ElementNotVisibleException” exception.
Following is the list of supported locators by Selenium.
Selenium provides the following methods for moving back and forth in a browser.
WebDriver exposes the following APIs to handle such popups.
This is a trick question which the interviewer will present to you. He can provide a situation where in there are 20 links in a web page, and we have to verify which of those 20 links are working and how many are not working (broken).
Since you need to verify the working of every link, the workaround is that, you need to send http requests to all of the links on the web page and analyze the response. Whenever you use driver.get() method to navigate to a URL, it will respond with a status of 200 – OK. 200 – OK denotes that the link is working and it has been obtained. If any other status is obtained, then it is an indication that the link is broken.
But how will you do that?
First, we have to use the anchor tags <a> to determine the different hyperlinks on the web page. For each <a> tag, we can use the attribute ‘href’ value to obtain the hyperlinks and then analyze the response received for each hyperlink when used in driver.get() method.
Alternative method to driver.get(“url”) method is driver.navigate.to(“url”).
We use Navigate interface to do navigate back and forth in a browser. It has methods to move back, forward as well as to refresh a page.
A hybrid framework is a combination of one or more frameworks. Normally it is associated with combination of data driven and keyword driven frameworks where both the test data and test actions are kept in external files (in the form of table).
Nodes are the machines which are attached to the selenium grid hub and have selenium instances running the test scripts. Unlike hub, there can be multiple nodes in selenium grid.
BITA – Best IT Academy is a leading IT training hub driven by IT professionals. We offer a competent platform to enable powerful and positive transformation in IT for better career opportunity and advancement.
No:1/37, Bharathiyar Street,
Moovarasampet Madipakkam,
Chennai 600 091.
Phone: +91 9176 00 4616
Nearby Locations: Ramapuram, DLF IT Park, Valasaravakkam, Adyar, Adambakkam, Anna Salai, Ambattur, Ashok Nagar, Aminjikarai, Anna Nagar, Besant Nagar, Chromepet, Choolaimedu, Guindy, Egmore, K.K. Nagar, Kodambakkam, Ekkattuthangal, Kilpauk, Medavakkam, Nandanam, Nungambakkam, Madipakkam, Teynampet, Nanganallur, Mylapore, Pallavaram, OMR, Porur, Pallikaranai, Saidapet, St.Thomas Mount, Perungudi, T.Nagar, Sholinganallur, Triplicane, Thoraipakkam, Tambaram, Vadapalani, Villivakkam, Thiruvanmiyur, West Mambalam, Velachery and Virugambakkam.
Copyrights © 2024 Bit Park Private Limited · Privacy Policy · All Rights Reserved · Made in BIT Park Pvt Ltd