What is WebElement in Selenium | Web Elements & Element Locators | EdurekaEdureka!
YouTube Link: https://youtu.be/r149MTf4DfI
(** Selenium Training: https://www.edureka.co/selenium-certification-training **)
This Edureka ‘Web elements in Selenium’ video helps you understand how web element plays a major role in testing an application.
Topics to be covered in this PPT
What are web elements
Different types of web elements
Operations performed on the web elements
Introduction to element locators
Web element Interface - Demo
Selenium playlist: https://goo.gl/NmuzXE
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This presentation covers an introduction to Selenium, the Open Source, cross browser, cross platform functional testing tool. The talk emphasized the importance of applying the same principles to testing (abstraction, refactoring, DRY) that development teams apply to developing software. (This presentation was used for a talk at the Asian Testing Conference)
What is WebElement in Selenium | Web Elements & Element Locators | EdurekaEdureka!
YouTube Link: https://youtu.be/r149MTf4DfI
(** Selenium Training: https://www.edureka.co/selenium-certification-training **)
This Edureka ‘Web elements in Selenium’ video helps you understand how web element plays a major role in testing an application.
Topics to be covered in this PPT
What are web elements
Different types of web elements
Operations performed on the web elements
Introduction to element locators
Web element Interface - Demo
Selenium playlist: https://goo.gl/NmuzXE
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This presentation covers an introduction to Selenium, the Open Source, cross browser, cross platform functional testing tool. The talk emphasized the importance of applying the same principles to testing (abstraction, refactoring, DRY) that development teams apply to developing software. (This presentation was used for a talk at the Asian Testing Conference)
Using Selenium for Automated testing - basic level: short introduction into the selectors and basic methods used in writing a simple script with Selenium Webdriver.
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...Edureka!
This Selenium WebDriver tutorial talks about the drawbacks of Selenium RC and what was the need for Selenium WebDriver. It goes into the details of the avantages that WebDriver has over RC and how it replaced RC for automation testing. This tutorial will also tell you how WebDriver works and what are the different browser drivers you can use for testing. Watch the video to get a demonstration on how to locate various elements/ objects on the browser and how operations can be performed on those browser elements/ objects by writing Java code in Eclipse IDE.
Watch the video here: https://www.youtube.com/watch?v=ph3NJm4Z7m4
In this Selenium presentation, we will learn about Selenium and a have a hands-on demo on the working of Selenium IDE and WebDriver. Selenium is an automated testing tool that tests web applications across various platforms and browsers. Selenium IDE, RC, WebDriver, and Grid constitute the Selenium suite. The tutorial video touches upon all the topics related to these components.
Selenium training has been designed to help developers and manual testers learn how to automate web applications with a robust framework, and integrate it within the DevOps processes of an organization. The course contains a lot of real-life examples and situations to demonstrate how to use Selenium WebDriver effectively.
The following are the key concepts of Selenium included in the presentation:
1. Manual testing and its limitations
2. What is Selenium
3. Selenium suite of tools
⦁ Selenium IDE with demo
⦁ Selenium RC
⦁ Selenium WebDriver with demo
⦁ Selenium Grid
4. Advantages of Selenium testing
5.Limitations of Selenium testing
What are the objectives of this Selenium training course?
This course will enable you to:
1. Revise the core Java concepts which are essential for learning Selenium WebDriver
2. Understand the scope of Test Automation in DevOps and fundamentals of Test Automation
3. Create Test Cases using Selenium IDE – Record and Playback tool
4. Understand Selenium WebDriver architecture and various layers of interaction
5. Set up WebDriver project in Eclipse and write test cases using TestNG
6. Locate elements using various locating techniques
7. Work with various WebDriver commands to drive web browser and various WebElement commands to deal with various web components
8. Learn to deal with various possible scenarios in terms of pop-ups, multiple Windows, frames, taking screenshots
9. Implement Page Object Design Pattern and Data-Driven Testing
10. Understand how to use Maven, ANT, AutoIT, Sikuli, log4j, and listeners
11. Learn to use Selenium Grid with TestNG for parallel execution
12. Execute a project from scratch by building automation framework and automating a few test scenarios
Who should take this Selenium training course?
The course is ideal for :
1. Test Managers
2. Test Engineers
3. Test Lead
4. Test Analyst
5. QA Engineers
6. Software Developers
7. Engineers who want to learn Automation testing
Learn more about https://www.simplilearn.com/selenium-certification-training?utm_campaign=Selenium-Tutorial-For-Beginners-cobEbkTwbwY
(** Selenium Training: https://www.edureka.co/testing-with-selenium-webdriver **)
This ‘Selenium Maven with Eclipse’ PPT by Edureka helps you understand how to implement a Selenium Maven project using the Eclipse IDE. Below topics are covered in this PPT:
Selenium and its features?
Use case of Selenium
Introduction to Maven
Use case of Maven
Introduction to Selenium Maven
Advantages
Use case of Selenium Maven
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
In this session, we will discuss the introduction to the Data-Driven Testing Framework in Selenium. We will take a look at the importance of the Data-Driven Testing framework and also the integration of Apache POI and TestNg with the help of a demonstration.
Using Selenium for Automated testing - basic level: short introduction into the selectors and basic methods used in writing a simple script with Selenium Webdriver.
Selenium WebDriver Tutorial For Beginners | What Is Selenium WebDriver | Sele...Edureka!
This Selenium WebDriver tutorial talks about the drawbacks of Selenium RC and what was the need for Selenium WebDriver. It goes into the details of the avantages that WebDriver has over RC and how it replaced RC for automation testing. This tutorial will also tell you how WebDriver works and what are the different browser drivers you can use for testing. Watch the video to get a demonstration on how to locate various elements/ objects on the browser and how operations can be performed on those browser elements/ objects by writing Java code in Eclipse IDE.
Watch the video here: https://www.youtube.com/watch?v=ph3NJm4Z7m4
In this Selenium presentation, we will learn about Selenium and a have a hands-on demo on the working of Selenium IDE and WebDriver. Selenium is an automated testing tool that tests web applications across various platforms and browsers. Selenium IDE, RC, WebDriver, and Grid constitute the Selenium suite. The tutorial video touches upon all the topics related to these components.
Selenium training has been designed to help developers and manual testers learn how to automate web applications with a robust framework, and integrate it within the DevOps processes of an organization. The course contains a lot of real-life examples and situations to demonstrate how to use Selenium WebDriver effectively.
The following are the key concepts of Selenium included in the presentation:
1. Manual testing and its limitations
2. What is Selenium
3. Selenium suite of tools
⦁ Selenium IDE with demo
⦁ Selenium RC
⦁ Selenium WebDriver with demo
⦁ Selenium Grid
4. Advantages of Selenium testing
5.Limitations of Selenium testing
What are the objectives of this Selenium training course?
This course will enable you to:
1. Revise the core Java concepts which are essential for learning Selenium WebDriver
2. Understand the scope of Test Automation in DevOps and fundamentals of Test Automation
3. Create Test Cases using Selenium IDE – Record and Playback tool
4. Understand Selenium WebDriver architecture and various layers of interaction
5. Set up WebDriver project in Eclipse and write test cases using TestNG
6. Locate elements using various locating techniques
7. Work with various WebDriver commands to drive web browser and various WebElement commands to deal with various web components
8. Learn to deal with various possible scenarios in terms of pop-ups, multiple Windows, frames, taking screenshots
9. Implement Page Object Design Pattern and Data-Driven Testing
10. Understand how to use Maven, ANT, AutoIT, Sikuli, log4j, and listeners
11. Learn to use Selenium Grid with TestNG for parallel execution
12. Execute a project from scratch by building automation framework and automating a few test scenarios
Who should take this Selenium training course?
The course is ideal for :
1. Test Managers
2. Test Engineers
3. Test Lead
4. Test Analyst
5. QA Engineers
6. Software Developers
7. Engineers who want to learn Automation testing
Learn more about https://www.simplilearn.com/selenium-certification-training?utm_campaign=Selenium-Tutorial-For-Beginners-cobEbkTwbwY
(** Selenium Training: https://www.edureka.co/testing-with-selenium-webdriver **)
This ‘Selenium Maven with Eclipse’ PPT by Edureka helps you understand how to implement a Selenium Maven project using the Eclipse IDE. Below topics are covered in this PPT:
Selenium and its features?
Use case of Selenium
Introduction to Maven
Use case of Maven
Introduction to Selenium Maven
Advantages
Use case of Selenium Maven
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
In this session, we will discuss the introduction to the Data-Driven Testing Framework in Selenium. We will take a look at the importance of the Data-Driven Testing framework and also the integration of Apache POI and TestNg with the help of a demonstration.
Selenium is a software testing framework for automating tests of Web applications. Join Frank Cohen for a Workshop to learn the basics of Selenium. A screencast for this presentation is on the PushToTest.com Web site.
Interview questions and answers for quality assuranceGaruda Trainings
Future of Software Testing is always good... as long as developers are developing projects we will be testing them and even when they stops developing then also we will test the enhancements and maintenance etc... Testing will always be needed
Customer will never accept the product Without complete testing .Scope of testing is always good as it gives everyone a confidence of the work we all are doing...Its always good to add more processes while doing testing so that one should not think that testing is a boring and easy job....Process is very imp. for testing.
Register for Free DEMO: www.p2cinfotech.com
email id: p2cinfotech@gmail.com
+1-732-546-3607 (USA)
Test Automation Demonstration with Dr Yongyan Wang by XBOSoftXBOSoft
TAF- Test Automation Framework developed by Dr Yongyan Wang.
See demo and webinar on Youtube- hosted by XBOSoft- software quality improvement.
http://youtube/Y0KtYJRNjuQ
Сотрудница компании JazzTeam провела ряд лекций в Гродненском государственном университете имени Янки Купалы.
После конференции Solit-2013 в рамках ознакомительного тура по Беларуси для одного из англозычных докладчиков, руководство компании посетило Гродненский государственный университет имени Янки Купалы, где состоялось знакомство с руководством кафедры программного обеспечения интеллектуальных и компьютерных систем. В рамках продолжения отношений между компанией и кафедрой представитель компании JazzTeam провела несколько лекции по тематике разработки программного обеспечения.
Лекции проходили в рамках заседания студенческого семинара “Информатика – Сегодня”, которые университет и кафедра проводят регулярно.
Вторая лекция была проведена 28 марта 2013 года на тему “Автоматизация тестирования. Разбор конкретного примера – продукта XML2Selenium”.
Лекция была больше направлена на практические аспекты, общение со слушателями и донесение до них необходимости писать тесты, автоматизировать процесс тестирования проекта, на примере фреймворка xml2selenium – разобрали ключевые проблемы автоматизации тестирования, рассмотрели стадии разработки ПО, Continious Integration, планы фреймворка xml2selenium на будущее.
На лекциях присутствовало много людей, начиная от первокурсников до преподавателей.
Лекции охватывали большой спектр вопросов, и все моменты были разобраны на примерах. Публика вела себя очень оживленно и интересовалась больше примерами из жизни, практическими навыками.
Впечатления о проведенных лекциях остались самые положительные. Спасибо за интересные вопросы и обсуждения!
Dear readers, these set of interview questions are designed in a way to help in cracking the automation testing with Selenium Webdriver. In this document we will try to cover all those topics which we generally use with Selenium Webdriver, such as Maven, TestNG etc.
DevLabs Alliance Top 50 Selenium Interview Questions for SDETDevLabs Alliance
DevLabs Alliance Selenium Interview Questions for SDET will help SDETs to prepare for their interviews. Learn top 50 questions with their answers for Selenium which are majorly asked in interview for SDET role.
DevLabs Alliance Top 50 Selenium Interview Questions for SDETDevLabs Alliance
DevLabs Alliance Selenium Interview Questions for SDET will help SDETs to prepare for their interviews. Learn top 50 questions with their answers for Selenium which are majorly asked in interview for SDET role.
Selenium basic questions and answers
Selenium basic questions and answers
Selenium basic questions and answers
Selenium basic questions and answersSelenium basic questions and answers
Selenium basic questions and answers
An introduction to the Selenium test tool, including the Selenium IDE and Selenium RC. Hosted by the British Computer Society in London.
Presenters:
Komal Joshi
Director: Atlantis Software Limited
Anand Ramdeo
Head of Quality Assurance: GCAP Media
25 Top Selenium Interview Questions and Answers for 2023.pdfAnanthReddy38
1.What is Selenium?
Selenium is an open-source tool used for automating web browsers.
2. What are the components of Selenium?
Selenium has three components: Selenium WebDriver, Selenium IDE, and Selenium Grid.
3.What is the difference between Selenium WebDriver and Selenium IDE?
Selenium WebDriver is a programming interface used to create and run test cases. Selenium IDE is a record and playback tool used to create test cases.
4.What programming languages are supported by Selenium?
Selenium supports a variety of programming languages, including Java, Python, Ruby, C#, and JavaScript.
5.What is the use of the Selenium WebDriver?
Selenium WebDriver is used to create and run test cases on web browsers.
6.What is a locators in Selenium?
Locators are used to identify elements on a web page in Selenium. Some commonly used locators include ID, Name, Class Name, CSS Selector, and Xpath.
7.What is an Xpath?
Xpath is a language used to locate elements on a web page in Selenium. It stands for XML Path Language.
8.What are the advantages of using Selenium?
Selenium is open-source, supports multiple programming languages, can run on multiple browsers, and can automate web applications.
9.What are the disadvantages of using Selenium?
Selenium can be slow and unstable at times, and it requires a good understanding of programming languages.
10.What is the difference between findElement and findElements in Selenium WebDriver?
findElement returns the first matching element on a web page, while findElements returns a list of all matching elements.
11.How do you handle dynamic elements in Selenium?
Dynamic elements can be handled using wait commands, such as implicit wait, explicit wait, and fluent wait.
12.How do you handle pop-ups and alerts in Selenium?
Pop-ups and alerts can be handled using the switchTo() method in Selenium.
13.What is a Selenium Grid?
Selenium Grid is a tool used to run Selenium tests on multiple machines at the same time.
14.What is a Selenium IDE?
Selenium IDE is a record and playback tool used to create test cases for web applications.
15.How do you run Selenium tests in different browsers?
Selenium tests can be run in different browsers using the WebDriver object and the desired capabilities.
16.How do you select a value from a dropdown in Selenium?
Dropdowns can be selected using the Select class in Selenium.
17.What is a headless browser in Selenium?
A headless browser is a browser that runs in the background without a user interface. It is used for automated testing and web scraping.
18.How do you take a screenshot in Selenium?
Screenshots can be taken using the TakesScreenshot interface in Selenium.
19.How do you handle frames in Selenium?
Frames can be handled using the switchTo() method in Selenium.
20.How do you handle multiple windows in Selenium?
Multiple windows can be handled using the getWindowHandles() method in Selenium.
21.How do you handle cookies in Selenium?
Cookies can be handled
Edureka Selenium Interview Questions and Answers Tutorial will help you to prepare yourself for Selenium interviews. Learn about the most important Selenium interview questions and answers and know what will set you apart in the interview process.
Watch the video here to find out elaborate answers to these questions: https://www.youtube.com/watch?v=6HS8-u96JJM
1.Selenium is an open-source, automated testing tool used to test web app across multiple browsers
2.Python is object-oriented and functional use for write test cases.
3.Here we are knowing about different kind of module like webdriver, utils etc.
4.WebDriver is a remote control interface that enables introspection and control of user agents.
5.A high-level instruction set for manipulating form controls.
6.Here we are working with some example using Google form.
Want to move your career forward? Looking to build your leadership skills while helping others learn, grow, and improve their skills? Seeking someone who can guide you in achieving these goals?
You can accomplish this through a mentoring partnership. Learn more about the PMISSC Mentoring Program, where you’ll discover the incredible benefits of becoming a mentor or mentee. This program is designed to foster professional growth, enhance skills, and build a strong network within the project management community. Whether you're looking to share your expertise or seeking guidance to advance your career, the PMI Mentoring Program offers valuable opportunities for personal and professional development.
Watch this to learn:
* Overview of the PMISSC Mentoring Program: Mission, vision, and objectives.
* Benefits for Volunteer Mentors: Professional development, networking, personal satisfaction, and recognition.
* Advantages for Mentees: Career advancement, skill development, networking, and confidence building.
* Program Structure and Expectations: Mentor-mentee matching process, program phases, and time commitment.
* Success Stories and Testimonials: Inspiring examples from past participants.
* How to Get Involved: Steps to participate and resources available for support throughout the program.
Learn how you can make a difference in the project management community and take the next step in your professional journey.
About Hector Del Castillo
Hector is VP of Professional Development at the PMI Silver Spring Chapter, and CEO of Bold PM. He's a mid-market growth product executive and changemaker. He works with mid-market product-driven software executives to solve their biggest growth problems. He scales product growth, optimizes ops and builds loyal customers. He has reduced customer churn 33%, and boosted sales 47% for clients. He makes a significant impact by building and launching world-changing AI-powered products. If you're looking for an engaging and inspiring speaker to spark creativity and innovation within your organization, set up an appointment to discuss your specific needs and identify a suitable topic to inspire your audience at your next corporate conference, symposium, executive summit, or planning retreat.
About PMI Silver Spring Chapter
We are a branch of the Project Management Institute. We offer a platform for project management professionals in Silver Spring, MD, and the DC/Baltimore metro area. Monthly meetings facilitate networking, knowledge sharing, and professional development. For event details, visit pmissc.org.
MISS TEEN GONDA 2024 - WINNER ABHA VISHWAKARMADK PAGEANT
Abha Vishwakarma, a rising star from Uttar Pradesh, has been selected as the victor from Gonda for Miss High Schooler India 2024. She is a glad representative of India, having won the title through her commitment and efforts in different talent competitions conducted by DK Exhibition, where she was crowned Miss Gonda 2024.
New Explore Careers and College Majors 2024Dr. Mary Askew
Explore Careers and College Majors is a new online, interactive, self-guided career, major and college planning system.
The career system works on all devices!
For more Information, go to https://bit.ly/3SW5w8W
NIDM (National Institute Of Digital Marketing) Bangalore Is One Of The Leading & best Digital Marketing Institute In Bangalore, India And We Have Brand Value For The Quality Of Education Which We Provide.
www.nidmindia.com
Exploring Career Paths in Cybersecurity for Technical CommunicatorsBen Woelk, CISSP, CPTC
Brief overview of career options in cybersecurity for technical communicators. Includes discussion of my career path, certification options, NICE and NIST resources.
Jill Pizzola's Tenure as Senior Talent Acquisition Partner at THOMSON REUTERS...dsnow9802
Jill Pizzola's tenure as Senior Talent Acquisition Partner at THOMSON REUTERS in Marlton, New Jersey, from 2018 to 2023, was marked by innovation and excellence.
2. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
Chapter: 1 Topic: Selenium IDE Basics
1. What is Selenium IDE?
a. Selenium IDE (Integrated Development Environment) is an ideal tool used to develop
selenium test scripts.
b. Which allows us to record user actions on browser window
c. It operates as a Mozilla Firefox add on and provides an easy to use interface for
developing and running individual test cases or entire test suites
d. An open source functional automation tool
e. All of the above
Ans: e
2. How do you open/start selenium-ide after installation ?
a. Goto Start > All Programs > Selenium IDE
b. First launch/open firefox browser and then click on 'Tools' tab in the menu bar and click
Selenium IDE
c. Click Shortcut option on the Desktop
d. None of the above
Ans: b
3. Features of selenium IDE ____
a. Its main feature is record and playback
b .Identifies element using id, name, xpath etc
c. It has an option of asserting title of every page automatically
d. It has a feature of exporting testcase/suite into different formats like C#, Java, Ruby,
Python
e. All of the above
Ans: e
4. Selenium IDE runs in ____ browser
a. Chrome
b. IE 8
c. Safari
d. Firefox
e. Netscape
Ans: d
3. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
5. Selenium IDE can execute scripts created in ____
a. Selene’s only
b. JAVA
c. C#
d. Ruby
e. Python
Ans: a
6. Selenium IDE cannot upload files.
a. TRUE
b. FALSE
Ans: a
7. Selenium IDE directly does not support Loops and Conditions
a. TRUE
b. FALSE
Ans: a
8. Selenium IDE can read external files like ....
a. .txt files
b. .csv files
c. Can't read
d. .xls files
e. None of the above
Ans:c
9. Selenium _____ are the way of finding HTML element on the page to perform Selenium
actions
a. xpath
b. locators
c. element id
d. None of the above
Ans: b
4. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
10. We use ____(for firefox) to identify elements
a. Object Spy
b. HTML DOM
c. Xpath
d. Firebug
Ans: d
11. What is selenese ?
a. Selenium set of commands
b. A type of language
c. Scripting language
d. All of the above
Ans: a
12. ____ is used when the expected value is mandatory to continue with next set of steps
a. Verify
b. Wait For Text
c. Assert
d. Verify Text
Ans: c
13. ____ is used when the expected value is optional to continue with the next set of steps
a. Verify
b. Assert
c. Verify Text
d. Wait For Text
Ans: a
14. Can tests recorded using Selenium IDE be run in other browsers?
a. Yes
b. No
Ans: a
5. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
15. What kind of application is the Selenium IDE?
a. Windows Application
b. Web application
c. Firefox add-on
d. None of the above
Ans: c
16. A Selenium IDE test case has three columns, Command, Target and Value. What data is
stored in the Target column?
a. Element or location where the command is executed
b. Test step execution result
c. [Optional] purpose of the test step
d. None of the above
Ans: a
17. By default, in which format does the Selenium IDE save a test case?
a. In proprietary format
b. As HTML
c. As Java source code
d. As Ruby or Python or C# code depending on user options selected during installation
Ans: b
18. What features are available in Selenium IDE to debug an automated test case?
a. Toggle Breakpoint
b. Pause/ Resume
c. Step
d. All of the above
Ans: d
19. What is the Selenium print command?
a. echo
b. print
c. alert
d. System.out.println()
Ans: 1
6. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
20. What is the difference between a command and the same command with "AndWait" (e.g.
click and clickAndWait commands)?
a. Selenium waits indefinitely for the result of the "AndWait" command.
b. It waits for the result of the "AndWait" command but only for 30 seconds (default
timeout).
c. It waits for the result of the "AndWait" command but only up to a maximum of 30
seconds (default timeout).
d. Some commands do not have an "AndWait" command, so this question is incorrect.
Ans: c
21. What is the correct syntax to access the value of a Selenium variable called name?
a. name
b. $name
c. {name}
d. ${name}
Ans: d
22. In which associative array does Selenium store all of a test case's variables and their
respective values?
a. Array
b. storedVars
c. var
d. There is no such array in Selenium
Ans: b
23. Where can you create your own Selenium commands?
a. This is not possible.
b. In user-extensions.js file
c. In any JavaScript file, but the preferred name is user-extensions.js for consistency
d. In any Java, C#, Python, Ruby, PHP or Perl file
Ans: c
7. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
24. What is the purpose of the Find button?
a. Highlight the element that is given in the locator
b. Search the appropriate command for the given target
c. Find the current value of the target
d. None of the above
Ans: a
25. Why are relative XPaths preferred over absolute XPaths as locators?
a. For non-root elements, absolute XPaths are longer and slow down the test automation.
b. Absolute XPaths fail if any part of the path changes even slightly.
c. Relative XPaths are the default in Selenium.
d. None of the above
Ans: b
26. What is the best way to handle asynchronous data retrieval from the server as in AJAX
applications?
a. Run the test case at the slowest speed.
b. Use the pause command.
c. Use the "AndWait" commands.
d. Use the "waitFor" commands.
Ans: d
27. What happens when the application creates a JavaScript alert during test case play?
a. The alert is suppressed by Selenium..
b. If there is no command to handle the alert, the play is stopped with an error.
c. If the alert is handled with assertAlert, assertAlertPresent or verifyAlert, no alert is
displayed and there is no error.
d. All of the above
Ans: d
8. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
Chapter: 2 Topic: Selenium RC
1. What is Selenium RC?
a. Selenium RC starts up browsers(one at a time) and then runs commands we pass along
from our tests
b. It allows us to use a programming language for maximum flexibility and extensibility in
developing test logic
c. It provides an API and library for each of its supports languages like Java, Ruby,
Python, Perl and C#
d. All of the above
Ans:d
2. Selenium RC components are ___
a. Selenium server
b. Client libraries
c. Selenium Grid
d. Both 1 & 2
Ans: d
3. Selenium Server launches and kills browser
a. TRUE
b. FALSE
Ans: a
4. ____ provide the interface between each programming language and the Selenium RC
server
a. Selenium RC
b. Client libraries
c. Selenium Server
d. None of the above
Ans:b
5. Why selenium RC is used ?
a. Used to automate web applications with more effective browser actions when compared
to Selenium IDE
b. We can handle multiple windows and pop-ups, we can use loops and conditions,
capturing screenshot etc
c. RC can perform Data-Driven (read/write data from external files) concept, decent report
generation and mailing
d. All of the above
Ans: d
9. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
6. What are the languages and operating systems that support RC ?
a. Java
b. C#
c. Perl
d. Python
e. All of the above
Ans: e
7. Sleep() method is used ___
a. To pause the test execution until the time provided in sleep method
b. To stop the test
c. To set the time of delay which will follow each and every selenium command
d. None of the above
Ans: a
8. How do you select second value from a drop down menu?
a. String a[]=selenium.getSelectOptions(locator of drop down);
selenium.select("locator of drop down", a[2]);
b. selenium.select("locator of drop down", "value);
c. String a[]=selenium.getSelectOptions(locator of drop down);
selenium.select("locator of drop down", a[1]);
d. None of the above
Ans: c
9. What are the frameworks available in RC ?
a. JUnit
b. NUnit
c. TestNG
d. Bromine
e. All of the above
Ans: e
10. How do you run selenium commands in slow motion in Selenium RC?
a. Thread. Sleep
b. Selenium.SetSpeed
c. Wait()
d. Both 1 & 2
Ans: d
10. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
Chapter: 2 Topic: JUnit
1. What Is JUnit?
a. It is a software testing framework to for unit testing.
b. It is written in Java and designed to test Java applications.
c. It is an Open Source Software
d. All of the above
Ans: d
2. How to Write a Simple JUnit Test Class?
a. import org.junit.*;
public class HelloTest
{
@Test public void testHello()
{
String message = "Hello World!";
Assert.assertEquals(12, message.length());
}}
b. @Test public void testHello()
{
String message = "Hello World!";
Assert.assertEquals(12, message.length());
}
c. public class HelloTest
{
@Test public void testHello()
{
String message = "Hello World!";
Assert.assertEquals(12, message.length());
}
d. None of the above
Ans:a
3. Why Not Just Use a Debugger for Unit Testing?
a. Debugger is designed for automation unit testing
b. Debugger is designed for manual debugging
c. Debugger can be used for unit testing
d. All of the above
Ans: b
11. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
4. Do You Need to Write a Test Class for Every Class That Need to Be Tested?
a. Yes
b. No
Ans: b
5. How to create a Test Suite using JUnit in Eclipse?
a. Select File > New > Other... > Java > JUnit > JUnit Test Suite.
b. Select the arrow of the button in the upper left of the toolbar. Select Other... > Java >
JUnit > JUnit Test Suite,
c. Right click on a package in the Package Explorer view in the Java Perspective, and
select Other... > Java > JUnit > JUnit Test Suite,
d. You can create a normal Java class, but include junit.framework.TestSuite as the super
class of the test class you are creating.
e. All of the above
Ans: e
6. How to Run a JUnit Test Case in Eclipse?
a. You can right click on the test case class or test suite class and select Run As > JUnit
Test.
b. You can select a test case or suite and click the arrow on the icon or select Run from
the toolbar, and select Run As > JUnit Test.
c. Both 1 and 2
d. None of the above
Ans: c
Chapter: 2 Topic: JUnit
1. ANT is a ___
a. a. Build Tool Only For Java.
b. b. Build Tools Only For .Net
c. A language
d. Build Tool
Ans: d
12. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. How to make build directory in XML file?
a. <mkdir dir="${dir.build}"/>
b. <makedir dir="${dir.build}"/>
c. <mkdir Dir="{dir.build}"/>
d. None of the above
Ans: c
3. Which one are the properties of the Ant?
a. Basedir
b. Basedir
c. Rootdir
d. None of the above
Ans: b
4. Which one is not a property of the Ant?
a. ant.java.version
b. ant.version
c. ant.create
d. ant.home
Ans: c
5. Which one is true method for message printing in xml file?
a. printf
b. println
c. echo
d. None of the above
Ans: c
6. We can execute the class file with help of Ant?
a. TRUE
b. FALSE
Ans: a
13. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
7. What is Stand for is Ant VM?
a. Account Virtual Machines
b. Accountable Virtual Machines
c. Amount able Virtual Machines
d. All of the above
Ans: b
8. How to set the Source directory in Ant?
a. <Property name="dir.src" value="src"/>
b. <property name="dir.build" value="biuld"/>
c. <property name="dir.src" value="src"/>
d. None of the above
Ans: c
9. Ant can make directory with relative path?
a. TRUE
b. FALSE
Ans: a
10. Which one is the sign of path separator in Ant?
a. .
b. ;
c. ,
d. :
Ans: c
Chapter: 2 Topic: Basics of Core JAVA
1. What is Constructor?
a. A constructor is a special method whose task is to initialize the object of its class
b. Constructor is invoked whenever an object of its associated class is created
c. It is special because its name is the same as the class name
d. All of the above
Ans: d
14. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. Can constructor be inherited?
a. Yes
b. No
Ans: b
3. What are Access Specifies available in Java?
a. Public
b. Protected
c. Default
d. Private
e. All of the above
Ans: e
4. Is delete , next, main, exit or null keyword in Java?
a. Yes
b. No
Ans: b
5. What if you write Static public void instead of public static void?
a. Program will not compile
b. Program will not run properly
c. Program compiles and runs properly
d. Syntax Error
Ans: c
6. What is the default value of the local variables?
a. Local variables are not initialized to any default value
b. Local variables are initialized to default value 0
c. Local variables are initialized to default value NULL
d. None of the above
Ans: a
7. What will be the initial value of an object reference which is defined as an instance variable?
a. 0
b. 1
c. No initial value
d. Null
Ans: d
15. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
8. What is the purpose of default constructor?
a. Default constructor provides 0 to the objects
b. Default constructor provides the default values to the objects
c. Default constructor does nothing
d. None of the above
Ans: b
9. What is JVM?
a. Java virtual machine
b. Provides runtime environment to execute java bytecode
c. JVM is platform dependent
d. All of the above
Ans: d
10. What is the return type of the main method?
a. Main method doesn't return anything hence declared void
b. It returns default value 0
c. It returns the value of function called within it
d. None of the above
Ans: a
11. Is Java support pointer?
a. TRUE
b. FALSE
Ans: a
12. Which is here class?
a. int
b. integer
c. float
d. double
Ans: b
16. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
13. Size of char in Java?
a. 1 byte
b. 2 byte
c. 4 byte
d. 8 byte
Ans: b
14. Is Java support multiple inheritance?
a. FALSE
b. TRUE
Ans: a
15. Which two statements are reserved words in java?
A. Run
B. Import
C. Default
D. implement
a. B,C
b. A,B
c. A,D
d. B,D
Ans: a
16. Which will declare a method that forces a subclass to implement it?
a. Public double methodx();
b. Static void methodx(double d1) {}
c. Public native double methodx();
d. Abstract public void methodx();
Ans: d
17. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
17. public class Foo {
public static void main (string [] args)
StringBuffer a = new StringBuffer ("A");
StringBuffer b = new StringBuffer ("B");
operate(a,b);
system.out.println(a + "," + b);
}
static void operate (StringBuffer x, StringBuffer y) {
x.append(y);
y=x;
}
}
a. Code compiles and prints A
b. Code compiles and prints B
c. Code compiles and prints AB
d. None of the above
Ans: c
18. Which constructs a DataOutputStream?
a. new dataOutputStream(new writer("out.txt"));
b. new dataOutputStream(new FileWriter("out.txt"));
c. new dataOutputStream(new OutputStream("out.txt"));
d. new dataOutputStream(new FileOutputStream("out.txt"));
Ans: d
19. Which can be used to encodeChars for output?
a. java.io.OutputStream
b. java.io.OutputStreamWriter
c. java.io.EncodeOutputStream
d. java.io.EncodeWriter
Ans: b
18. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
20. class StaticDemo
static int a = 42;
static int b = 99;
staticvoid ca||me()-{
System.out.println("a = " + a);
class StaticByName{
public static void main(String args[]){ StaticDemo.ca||me();
System.out.print|n("b = " + StaticDemo~b);
a. a=42
b=99
b. a=99
b=42
c. a=88
b=99
d. None of the above
Ans: a
21. Which of these not associated Java?
a. exception
b. extern
c. extends
d. error
Ans: b
22. Collection interface found in which package?
a. java.lang
b. java.io
c. java.util
d. java.net
Ans: c
23. Hashcode method must be used with which method?
a. init()
b. service()
c. finally()
d. equals()
Ans: d
19. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
24. Wait, notify, notify belongs to which class?
a. thread
b. object
c. object class
d. None of the above
Ans: b
25. Java supports which code?
a. ascii
b. ebcdic
c. Unicode
d. Grey
Ans: c
26. Static keyword associated with ___
a. object
b. exception
c. class
d. error
Ans: c
27. Which structure used for synchronization?
a. hash table
b. array list
c. array
d. All of the above
Ans: d
28. Which structure store unique element?
a. array
b. linked list
c. set
d. stringbuffer
Ans: c
20. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
29. You can use date related function in which package in Java?
a. java.util
b. java.io
c. java.lang
d. All of the above
Ans: a
30. Which is true about thread in Java?
a. Thread share the address space
b. Thread can be created by extending thread class
c. Thread is a lightweight class
d. All of the above
Ans: d
Chapter: 4&5 Topic: JUnit annotations
1. The annotation ___ identifies that a method is a test method
a. @Before
b. @Test
c. @After
d. @Ignore
Ans: b
2. ____ will execute the method before each test.
a. @Before
b. @Test
c. @After
d. @After Class
Ans: a
3. ____ will execute the method after each test.
a. @Before
b. @After Class
c. @Test
d. @After
Ans: d
21. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
4. @ Test(timeout=100), what is the significance of this statement?
a. Pass, if the method takes longer than 100 miliseconds
b. Same as @Test
c. Fails, if the method takes longer than 100 miliseconds
d. None of the above
Ans: c
5. ____ will execute the method once, before the start of all tests.
a. @Before
b. @Before Class
c. @After
d. @Test
Ans: b
6. ____ will execute the method once, after all tests have finished.
a. @After Class
b. @Before Class
c. @After
d. @Ignore
Ans: a
Chapter: 4&5 Topic: DATA Driven
1. Does Selenium support Data Driven Framework?
a. No
b. Only supports Modular framework
c. Yes
d. Only supports Keyword driven framework
e. None of the above
Ans: c
2. In___ approach tests can be executed multiple sets of test data
a. Data Driven Framework
b. Modular Framework
c. Keyword Driven Framework
d. Hybrid Framework
Ans: a
22. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
3. What is the basic approach of Data Driven Framework?
a. Code and Data as a single unit
b. Code and Data as a separate units
c. None of the above
Ans: b
4. Which statement is correct to create excel automation object using POI excel API?
a. File myxl == new File (<excel path>)
b. File myxl = File (<excel path>)
c. myxl = new File (<excel path>)
d. File myxl = new File (<excel path>)
Ans: d
5. Find out the correct option to open a excel file for read.
a. File myxl = new File (<excel path>)
FileInputStream stream = new FileInputStream(myxl)
b. FileInputStream stream = new FileInputStream(myxl)
c. FileInputStream stream = FileInputStream(myxl)
d. None of the above
Ans: a
6. HSSFCell cell = row.getcell(j)
This statement will give provided cell data
a. FALSE
b. TRUE
c. Syntax not correct
d. None of the above
Ans: b
7. In Data Driven Framework, data can be only accessed from excel.
a. TRUE
b. FALSE
Ans: b
23. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
8. Data Driven Framework used for only one set of Test Data
a. TRUE
b. FALSE
Ans: b
9. Function libraries concept cannot be implemented in Data Driven Framework. Is it right?
a. Yes
b. May be
c. No
d. Both (1) and (2)
e. All of the Above
Ans: c
10. In Data Driven Framework, can you access data from database?
a. Yes
b. No
c. May be
d. All of the Above
Ans: a
11. ___Statement is used to close excel automation object. If myxl object is already created
a. myxl.close()
b. Close()
c. myxl.close
d. None of the above
Ans: a
12. Does Data Driven Framework supports parallel execution of scripts?
a. Yes
b. No
Ans: a
24. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
13. How to create new excel file?
a. "HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = createSheet(""Sample sheet"");"
b. HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet("Sample sheet");
c. HSSFWorkbook workbook = new HSSFWorkbook();
sheet = workbook.createSheet("Sample sheet");
d. All of the above
Ans: b
14. How to create array in Java for primitive data types?
a. int[] myarr=int[3];
b. myarr=new int[3];
c. int[] myarr=new int[3];
d. None of the above
Ans: c
15. Array subscripts start with the ___ in java.
a. 1
b. 2
c. -1
d. 0
Ans: d
Chapter: 6 Topic: Keyword Driven
1. What is Keyword driven framework?
a. Where JAVA keywords are used to call functions
b. Where pre defined keywords are used to describe actions
c. In this framework multiple data sets can be used to test
d. All of the above
Ans: b
25. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. Which file is mostly used to define keywords for Keyword Driven Framework?
a. In Text file
b. In Excel file
c. In CSV file
d. All of the above
Ans: b
3. Can manual tester develop tests in Keyword Driven Framework?
a. Yes
b. No
c. May be
d. None of the above
Ans: a
4. Can you define different function libraries in Keyword Driven Framework?
a. No
b. Yes
c. May be
d. None of the above
Ans: b
5. Each keyword related to a function defined in function library. Is this statement True?
a. May be
b. FALSE
c. TRUE
d. None of the above
Ans: c
6. While Designing Keyword Driven Framework we can map keywords at ___
a. Operation level
b. Functional level
c. Both Operation and functional level
d. None of the above
Ans: c
26. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
7. What are the common components of Keyword driven framework?
a. Excel Sheet to Store the Keywords
b. Function Library
c. Test Control file
d. Test Scripts
e. All of the above
Ans: e
8. What is Driver script in framework?
a. Script is used to initialize and read the control files
b. Consists details of all the Test scenarios to be automated.
c. Driver Script reads the Test Case files. Checks the keywords and calls the appropriate
utility script functions based on specific keyword
d. None of the above
Ans: c
Chapter: 7 Topic: Webdriver Overview
1. Which of these WebDriver interface methods is used to open a URL in the browser?
a. get
b. navigate().to
c. Any of the above
d. None of the above
Ans: c
2. What is the difference between Web Driver close and quit methods?
a. Nothing, these methods are interchangeable.
b. Close method clears the browser memory and the quit method closes the browser
window.
c. Close method closes the browser but the quit method additionally removes the
connection to the server.
d. Close method closes the main browser window but the quit method closes all the
browser windows including popups.
Ans: d
27. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
3. When invoked on a web element, what does the submit method do?
a. It is used to submit a form and it works on any web element.
b. It is used to submit a form but it works only on the web element whose type is "submit".
c. It is the same as the click method.
d. There is no submitting method for a web element.
Ans: a
4. Which Web Driver method is used to change focus to an alert, a web element or a browser
window?
a. Change Focus
b. switchTo
c. goTo
d. setFocus
Ans: b
5. What functionality does Web Driver support on browser cookies?
a. add and delete an individual cookie
b. delete all cookies
c. Any of the above
d. None of the above
Ans: c
6. What is the scope of an implicit wait?
a. All instances of Web Driver
b. Current Web Driver instance
c. Current expected condition
d. Current web element
Ans: b
7. What is Selenium Web driver?
a. It is an API
b. A tool for writing automated tests of website
c. Successor of Selenium RC
d. All of the above
Ans: d
28. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
8. Which browsers does Web driver support?
a. Chrome
b. Internet Explorer
c. Firefox
d. Opera
e. All of the above
Ans: e
9. What are the advantages of web driver?
a. Unlike RC you don’t have to start a server in webdriver
b. Tabs and pops are more or less the same. RC can also handle and Web driver can also
handle.
c. Simulate key press events of keyboard.
d. Better features for Ajax testing.
e. All of the above
Ans: e
10. How to create instance of firefox driver using webdriver?
a. driver = new FirefoxDriver();
b. driver = FirefoxDriver();
c. driver = new Firefox;
d. None of the above
Ans: a
Chapter: 8 Topic: Keyword Driven Framework - Using Webdriver
1. What are the external files which will be required to develop Keyword driven framwork?
a. TestNG
b. JXL/POI
c. JUnit
d. TestNG plugin for eclipse
e. All of the above
Ans: e
29. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. What is the purpose of Testing component in Keyword driven framework?
a. in order to data drive our test
b. in order to read excel file
c. requires to verify conditions
d. None of the above
Ans: a
3. JXL/POI jar files are required to _____.
a. requires to verify conditions
b. in order to use Microsoft Excel files as data source
c. in order to data drive our test
d. All of the above
Ans: b
4. How to create an instance of WebDriver?
a. Web Driver driver = FirefoxDriver();
b. Web Driver = new FirefoxDriver();
c. Web Driver driver = CreateObject FirefoxDriver();
d. Web Driver driver = new FirefoxDriver();
Ans: d
5. How to navigate to the ITeLearn home page?
a. Webdriver.get("http://www.itelearn.com");
b. driver.navigate("http://www.itelearn.com");
c. driver.get("http://www.itelearn.com");
d. None of the above
Ans: c
6. How to find an element by Name?
a. Web Element search Box = driver.findElement(By.name("someElement"));
b. Web Element search Box = findElement(By.name("someElement"));
c. Web Element search Box = driver.findElement(name("someElement"));
d. All of the above
Ans: a
30. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
7. Display the title of the page ____.
a. System.out.println("Title: " + driver.Title());
b. System.out.println("Title: " + driver.getTitle());
c. System.out.println("Title: " + getTitle());
d. None of the above
Ans: b
8. Does Selenium supports regular expression?
a. Yes
b. No
Ans: a
9. _____ statement matches links such as 'Over $75', 'Over $85' etc
a. selenium.click("link=^Over $[0-9]+$");
b. selenium.click("link=regexpi:^Over $+$");
c. selenium.click("link=regexpi:Over $[0-9]+$");
d. selenium.click("link=regexpi:^Over $[0-9]+$");
Ans: d
10. ____ statement clicks on the first image that has an id attribute that starts with
'cat_prod_image'.
a. selenium.click("//img[(@id,'cat_prod_image')]");
b. selenium.click("[starts-with(@id,'cat_prod_image')]");
c. selenium.click("//img[starts-with(@id,'cat_prod_image')]");
d. None of the above
Ans: c
Chapter: 9 Topic: Hybrid Framework using Webdriver
1.____ is the combination of both keyboard driven and data driven
frameworks
a. Linear Framework
b. Hybrid Framework
c. Modular Framework
d. Keyword Driven Framework
Ans: b
31. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. In Which case we can design Hybrid Framework
a. Rich Application functionality
b. Data sensitive testing
c. Regression testing
d. All of the above
Ans: d
3. What are the advantages of Hybrid framework?
a. Flexible
b. Increases accuracy
c. Highest ROI
d. All of the above
Ans: d
4. In Hybrid framework, data can accessed through database, excel file, xml etc.
a. TRUE
b. FALSE
Ans: a
5. Hybrid framework can be implemented for any application.
a. TRUE
b. FALSE
Ans: a
6. What are the frameworks available other than DDF, KDF and Hybrid?
a. Linear Framework
b. Modular Framework
c. Structured Framework
d. All of the above
Ans: d
32. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
Chapter: 12 Topic: Selenium Database Testing
1. What are the advantages of Database testing?
a. Both functional and DB testing can be performed at the same time while running the
automation script
b. Validate data displaying on a webpage and compare the same with database.
c. Connect to SQL, MySQL servers etc.
d. All of the above
Ans: d
2. mysql coonection jar file is required to connect with database
a. TRUE
b. FALSE
Ans: a
3. How to create instance of mysql to connect with database?
a. Object myDC = Class.forName(com.mysql.jdbc.Driver);
b. Object myDC = Class.forName(com.mysql.jdbc.Driver);
c. Object myDC = Class.forName("com.mysql.jdbc.Driver").newInstance();
d. None of the above
Ans: c
4. How to create database connection?
a. mycon = DriverManager.getConnection(myUName, myPWD)
mySt=mycon.createStatement();
b. mycon = DriverManager.getConnection(mySQLDB, myUName, myPWD)
mySt=mycon.createStatement();
c. mycon=getConnection(mySQLDB, myUName, myPWD)
mySt=mycon.createStatement();
d. None of the above
Ans: b
33. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
5. How to pass any sql query after database connection?
a. PreparedStatement preparedStatement = conn.prepareStatement(“select * from
YourTableName”);
b. preparedStatement = conn.prepareStatement(“select * from YourTableName”);
c. PreparedStatement preparedStatement = prepareStatement(“select * from
YourTableName”);
d. All of the above
Ans: a
6. What is Recordset in terms of Database?
a. Recordset also works as a View in Database
b. Recordset is a virtual table which stores data
c. It is used to open database connection
d. Recordset object is used to hold a set of records from a database table. A Recordset
object consist of records and columns
Ans: d
7. How to create record set?
a. set rs=CreateObject("ADODB.recordset")
rs.Open "Select * from Customers", oConnection
b. PreparedStatement preparedStatement = conn.prepareStatement("select * from
YourTableName");
resultSet = preparedStatement.executeQuery();
c. PreparedStatement preparedStatement = conn.prepareStatement("select * from
YourTableName");
preparedStatement.executeQuery();
d. None of the above
Ans: b
8. ___ statement will print the EmpID from the record set. Assume EmpID is Integer.
a. System.out.print(resultset.getInt("EmpID");
b. System.out.print(resultset.getString("EmpID")
c. System.out.print(resultset.getInt("Name")
d. All of the above
Ans: a
34. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
9. How to go on next data in record set?
a. resultset.First();
b. resultset.Last();
c. resultset.MoveNext();
d. resultset.next();
Ans: d
10. ___statement will close the database connection?
a. mycon.close;
b. mycon.close()
c. mycon.close();
d. None of the above
Ans: c
Chapter: 1 1 Topic: Selenium Grid
1. What is Selenium Grid?
a. Scale by distributing tests on several machines
b. manage multiple environments from a central point, making it easy to run the tests
against a vast combination of browsers / OS.
c. minimize the maintenance time for the grid by allowing you to implement custom hooks
to leverage virtual infrastructure for instance
d. All of the above
Ans: d
2. The selenium-server-standalone package includes the ____.
a. Hub
b. Webdriver
c. legacy RC needed to run the grid
d. All of the above
Ans: d
35. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
3. What is Hub in Selenium Grid?
a. The Hub is framework to run the Grid.
b. The Hub is the central point that will receive all the test request and distribute them the
the right nodes.
c. Both 1 & 2
d. None of the above
Ans: b
4. How to start Selenium hub?
a. java -jar selenium-server-standalone-2.32.0.jar -role node
b. java -role hub
c. java -jar selenium-server-standalone-2.32.0.jar -role hub
d. None of the above
Ans: c
5. How to start Selenium nodes?
a. java -jar selenium-server-standalone-2.32.0.jar -role node -hub
http://localhost:4444/grid/register
b. java -jar selenium-server-standalone-2.32.0.jar -role hub
c. java -jar selenium-server-standalone-2.32.0.jar -role node
d. All of the above
Ans: a
6. How to start remote control on port “5556” and register it to the local hub?
a. Dport =5556 launch-remote-contro
b. ant -Dport =5555 launch-remote-contro
c. ant -Dport =5556 launch-remote-contro
d. None of the above
Ans: c
Chapter: 11 Topic: Testing
1. What is testing?
a. Testing is a testing framework
b. designed to simplify a broad range of testing needs, from unit testing to integration
testing
c. Both 1 & 2
d. None of the above
Ans: c
36. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. What are the annotations available in Testing?
a. @Before Suite
b. @After Suite
c. @Before Test
d. @Before Groups
e. All of the above
Ans: e
3. Testing can be invoked from ____
a. Command line
b. Ant
c. Eclipse
d. IntelliJ's IDEA
e. All of the above
Ans: e
4. ____ statement will invoke TestNG from command line.
a. java org.testng.TestNG testng1.xml [testng2.xml testng3.xml ...]
b. ant -Dport =5556 launch-remote-contro
c. java org.testng.TestNG
d. None of the above
Ans: a
Chapter: 1 4 Topic: Maven
1. What is Maven?
a. software tool for project management
b. build automation
c. building and managing Java projects
d. All of the above
Ans: a
37. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. How to compile application sources using Maven?
a. change to the directory where pom.xml is created by archetype:generate
b. execute the following command:
mvn compile
c. Both 1 & 2
d. None of the above
Ans: c
3. What is an archetype?
a. building and managing Java projects
b. An archetype can be defined as an original pattern from which all other things of the
same kind are made.
c. Both 1 & 2
d. None of the above
Ans: b
4. What are the different dependency scopes have you used?
a. compile
b. provided
c. test
d. import
e. All of the above
Ans: e
5. How to prevent including JARs in WEB-INF/lib? I need a "compile only" scope!
a. The scope should be used for this is: provided
b. Compile
c. Import
d. Test
Ans: a
6. How to determine what version of a plugin being used?
a. mvn=install help:describe
b. mvn –Dplugin=help:describe
c. Both 1 & 2
d. mvn –Dplugin=install help:describe
Ans: d
38. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
7. Is it possible to create my own directory structure?
a. Yes
b. No
Ans: a
8. What is POM?
a. Project Object Model
b. xml file that contains information about project and configuration
c. It contains default value for most projects.
d. All of the above
Ans: d
9. When you compile a Maven project, where do you find the class files?
a. ${basedir}/target/classes
b. ${basedir}/target
c. $/target/classes
d. None of the above
Ans: a
10. What is the command to install JAR file in local repository?
a. mvn jar
b. mvn package
c. mvn install
d. None of the above
Ans: c
Chapter: 10 Topic: Dynamic Pages
1. Is Selenium able to handle dynamic AJAX elements?
a. Yes
b. No
c. Can’t Say
Ans: a
39. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
2. How to use xpath for dynamic elements?
a. Identify the pattern and modify xpath pattern
b. Directly use the xpath
c. Both 1 and 2
d. None of the above
Ans: a
3. Selenium can handle JavaScript alerts.
a. TRUE
b. FALSE
Ans: a
4. Is Regular expression helps to identify dynamic elements?
a. Yes
b. No
c. Not very compatible
Ans: c
5. How to check if any check box is checked or not?
a. driver.findElement(By.id(<>).Selected()
b. driver.findElement(By.id(<>).isSelected()
c. driver.findElement(By.id(<>).isChecked()
d. All of the above
Ans: b
6. Can Selenium handle Alerts or Pop ups windows?
a. Yes
b. No
Ans: a
7. What is getWindowHandle method?
a. Method will help to handle parent window
b. Method will help to handle of opened windows other than parent
c. Only handles alert
d. None of the above
Ans: b
40. Selenium Webdriver Interview Questions and Answers
Website: http://www.ITeLearn.com
Email: learn@itelearn.com
Contact: +1-314-827-5272, +91-837-4323-742(India)
8. How to handle alert using selenium?
a. driver.switchto.popup()
b. driver.switchto
c. driver.switchto.alert()
d. None of the above
Ans: c
9. What is Iterator?
a. Iterator enables you to cycle through a collection, obtaining or removing elements
b. It basically starts at the beginning of a collection
c. When you want to know which things are in a certain collection, you iterate over the
collection, which is just another term for going through all elements. This is what an
Iterator does
d. All of the above
Ans: d
10. After the popup actions, how to switch the driver back to the parent window?
a. browser.switchTo().window(parentWindowHandle);
b. browser.switchTo().alert();
c. Both 1 & 2
d. None of the above
Ans: a