SlideShare a Scribd company logo
1 of 6
Download to read offline
By OnlineInterviewQuestions.com
Selenium WebDriver Interview Questions
Q1. What is a WebDriver in selenium?
WebDriver in Selenium is a web automation framework. It allows the developers to execute their tests against
different browsers. With this, the developers can also use different programming languages like Java, .net, PHP
, Python, Perl, and Ruby in creating the test scripts. Conditional operations like if-else, switch-case, and loop
operations like do-while are possible with the WebDriver. The Selenium WebDriver is considered as one of the
most important components in the Selenium Tool’s suite.
Q2. What are the components of selenium?
There are four basic components present in the WebDriver architecture.
1. Bindings
2. JSON Wire Protocol
3. Browser Drivers
4. Real Browsers
Bindings are used by the developers in order to support multiple languages.
JSON Wire Protocol is a transport mechanism to transfer the data between a server and a client.
Browser Driver is specific to each browser to establish a secure connection with the browser without revealing
the internal logic of the browser’s functionality.
Real browsers are the browsers supported by the Selenium. They are Mozilla Firefox, Safari, Internet Explorer,
and Google Chrome.
Q3. What are the limitations of Selenium WebDriver?
Some of the limitations of the Selenium WebDriver are,
Only support for Web-Based applications
Takes time to create test cases
Difficult to set up a test environment
No support for automation of windows application
No built-in reporting facility
Doesn’t have test tool integration for test management
Difficult to process popups or frames
Doesn’t have the ability to automate captcha and OTP
Q4. What is searchcontext in selenium?
The SearchContext is a topmost interface present in the Selenium WebDriver hierarchy. It has two methods
that will be the abstract as SearchContext is an interface.
The two methods are the findElement() and findElements().
The findElement() is used to find the first WebElement that matches the current context.
The findElements() method is used to find all elements within the current context. It returns all the elements
that match or returns empty if nothing matches.
Q5. How to take input from user in selenium webdriver?
There are different WebElements present in the Selenium to get the input from the user. They are
TextBoxes, Password fields, Checkboxes, Radio buttons, file inputs, Dropdowns, etc. Developers can use any of
these WebElements depending upon their needs to get the input from the user.
Q6. List some Selenium commands in WebDriver?
List some of the WbDriver Selenium commands are,
get() - It takes a URL as its parameter and launches a new browser as it opens the specified URL in the
browser instance.
getClass() - It is used to retrieve the Class object that represents the runtime class of this object.
getCurrentUrl() - It is used to retrieve the URL of the webpage that is currently processed by the user.
getPageSource() - It is used to retrieve the page source of the webpage that is currently accessed by the
user.
getTitle() - It is used to retrieve the title of the webpage that is currently used by the user.
getText() - It is used to retrieve the inner text of the specified web element.
getAttribute() - It is used to retrieve the value of the specified attribute.
getWindowHandle() - It is used to tackle the situation when there is more than one window to deal with.
Q7. How to install selenium webdriver for python?
To install Selenium WebDriver for python,
You need to have python installed on your device. Then, you can use the pip command to install the Selenium
as follows.
pip install -U selenium
Q8. How to check the selenium webdriver version?
To check the version of the selenium webdriver installed, you can use the following command in the python
shell.
selenium._version_
Q9. List types of WebDriver APIs available in Selenium?
The WebDriver API gives a more simplistic and compact programming interface for the selenium.
They can be categorized into five types.
1. Domain
2. Synchronization
3. Navigation
4. Interrogation
5. Manipulation.
Q10. What are the advantages of selenium webdriver?
Some of the advantages of using Selenium WebDriver are,
Selenium WebDriver has support for all languages and framework
It is an open-source tool. So it can be publicly accessible with no upfront cost
The Selenium script is compatible with multiple browsers
It also has support in the various OS such as Windows, Linux, Mac OS, Unix, etc
The Selenium tests are reusable so it can be tested across different browsers and operating systems
It offers great flexibility
The Selenium automation framework is easy to use with a friendly interface
Q11. List some CSS selectors of selenium webdriver?
Some of the mainly used CSS selectors are,
Tag and ID
Tag and Class
Tag and Attribute
Tag, Class, and Attribute
Child elements such as Direct child, Sub-child, nth-child
And, Sub-Strings that matches start with (^), ends with ($) and contains (*)
Q12. List some alternatives of selenium webdriver?
Some of the alternative tools to the Selenium WebDriver is,
UI.Vision Kantu - An open-source task and test automation tool.
Katalon Studio - A robust API, web, and mobile test automation solutions with continuous integration.
CasperJS - A Javascript-based open-source navigation scripting and testing utility.
Wildfire - A custom automation workflow tool.
TestCafe - A Node JS end-to-end solution for testing web applications.
Puppeteer - A Node JS library that offers a high-level API to control headless Chrome.
Cypress.io - A front end automated testing tool created for the modern web.
Robot framework - A generic test automation framework.
Q13. List different types of waits available in selenium WebDriver?
There are three different types of waits available in Selenium.
They are the Implicit wait, Explicit wait, and Fluent wait.
The implicit wait will wait for all the findElement() and findElements() once it has been defined. The explicit
wait is defined for a particular web element and will wait for that single web element. The fluent wait is similar
to the explicit wait but we can ignore the exception and define the polling time in it.
Q14. List the programming languages supported by Selenium WebDiver?
The programming languages supported by the Selenium WebDriver are -
Java
Python
Ruby
C#
JavaScript
Perl
PHP.
Q15. List some exceptions that you had faced in the Selenium web driver?
Some of the common Exceptions in the Selenium WebDriver are,
ElementNotVisibleException - Here, the element will not be visible even if it is present.
ElementNotSelectableException - Here, the element is disabled.
NoSuchElementException - Here, the WebDriver cannot determine the element during the runtime.
NoSuchFrameException - Here, the switching to an invalid frame by the WebDriver is unavailable.
NoAlertPresentException - Here, the switching to an invalid alert by the WebDriver is unavailable.
NoSuchWindowException - Here, the switching to an invalid window by the WebDriver is unavailable.
WebDriverException - Here, the WebDriver will be acting immediately after closing the browser.
TimeoutException - Here, the command will not be completed in the specified time.
SessionNotFoundException - It occurs when the session is not found in the Selenium WebDriver.
StaleElementReferenceException - Here, the referenced element is longer present on the DOM page.
Q16. What do you understand by MSBI?
MSBI stands for (Microsoft Business Intelligence). It is an ETL tool used for database operations. The MSBI
in turn composed of different tools that help in providing the best solution for the Business Intelligence and the
Data Mining Queries. The tools present in the MSBI are the SSIS, SSAS, and SSRS. The MSBI allows the user
to gain access to accurate and up-to-date information for better decision making in the organization. It is a
Business Intelligence (BI) solutions tool that uses Visual Studio with the SQL server.
Q17. What is the full form of SSIS?
The full form of the SSIS is SQL Server Integration Services.
Q18. Enlist some core elements of SSIS Designer?
Some of the important components present in the SSIS are the packages, control flow elements, data flow
elements, connection managers, variables, event handlers, and log providers.
Please Visit OnlineInterviewquestions.com to download more pdfs

More Related Content

Similar to selenium-webdriver-interview-questions.pdf

An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriverAnuraj S.L
 
Introduction to Selenium Automation
Introduction to Selenium AutomationIntroduction to Selenium Automation
Introduction to Selenium AutomationMindfire Solutions
 
Interview Questions of Python selenium.pptx
Interview Questions of Python selenium.pptxInterview Questions of Python selenium.pptx
Interview Questions of Python selenium.pptxDucatIndia4
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Simplilearn
 
Top 15 Selenium WebDriver Interview Questions and Answers.pdf
Top 15 Selenium WebDriver Interview Questions and Answers.pdfTop 15 Selenium WebDriver Interview Questions and Answers.pdf
Top 15 Selenium WebDriver Interview Questions and Answers.pdfAnanthReddy38
 
Understanding Selenium/RC, Webdriver Architecture and developing the page obj...
Understanding Selenium/RC, Webdriver Architecture and developing the page obj...Understanding Selenium/RC, Webdriver Architecture and developing the page obj...
Understanding Selenium/RC, Webdriver Architecture and developing the page obj...Atirek Gupta
 
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptxA Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptxMatthew Allen
 
automation with python and selenium
automation with python and seleniumautomation with python and selenium
automation with python and seleniumManish Kumar
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionAmr E. Mohamed
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleSpringPeople
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Simplilearn
 
Python selenium
Python seleniumPython selenium
Python seleniumDucat
 
Android Automation Testing with Selendroid
Android Automation Testing with SelendroidAndroid Automation Testing with Selendroid
Android Automation Testing with SelendroidVikas Thange
 
Top 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxTop 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxSyntax Technologies
 
Selenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSelenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSarah Elson
 

Similar to selenium-webdriver-interview-questions.pdf (20)

An overview of selenium webdriver
An overview of selenium webdriverAn overview of selenium webdriver
An overview of selenium webdriver
 
Introduction to Selenium Automation
Introduction to Selenium AutomationIntroduction to Selenium Automation
Introduction to Selenium Automation
 
Interview Questions of Python selenium.pptx
Interview Questions of Python selenium.pptxInterview Questions of Python selenium.pptx
Interview Questions of Python selenium.pptx
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
 
Top 15 Selenium WebDriver Interview Questions and Answers.pdf
Top 15 Selenium WebDriver Interview Questions and Answers.pdfTop 15 Selenium WebDriver Interview Questions and Answers.pdf
Top 15 Selenium WebDriver Interview Questions and Answers.pdf
 
Understanding Selenium/RC, Webdriver Architecture and developing the page obj...
Understanding Selenium/RC, Webdriver Architecture and developing the page obj...Understanding Selenium/RC, Webdriver Architecture and developing the page obj...
Understanding Selenium/RC, Webdriver Architecture and developing the page obj...
 
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptxA Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
A Definitive Guide to Mastering Selenium WebDriver Automation Effectively.pptx
 
automation with python and selenium
automation with python and seleniumautomation with python and selenium
automation with python and selenium
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Introduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeopleIntroduction to Selenium Webdriver - SpringPeople
Introduction to Selenium Webdriver - SpringPeople
 
Selenium&scrapy
Selenium&scrapySelenium&scrapy
Selenium&scrapy
 
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
Selenium Tutorial For Beginners | Selenium Automation Testing Tutorial | Sele...
 
Python selenium
Python seleniumPython selenium
Python selenium
 
Android Automation Testing with Selendroid
Android Automation Testing with SelendroidAndroid Automation Testing with Selendroid
Android Automation Testing with Selendroid
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium.pptx
Selenium.pptxSelenium.pptx
Selenium.pptx
 
Top 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptxTop 30 Selenium Interview Questions.pptx
Top 30 Selenium Interview Questions.pptx
 
Selenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser TestingSelenium Web Driver Tutorial for Cross Browser Testing
Selenium Web Driver Tutorial for Cross Browser Testing
 

Recently uploaded

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 

Recently uploaded (20)

247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 

selenium-webdriver-interview-questions.pdf

  • 1. By OnlineInterviewQuestions.com Selenium WebDriver Interview Questions Q1. What is a WebDriver in selenium? WebDriver in Selenium is a web automation framework. It allows the developers to execute their tests against different browsers. With this, the developers can also use different programming languages like Java, .net, PHP , Python, Perl, and Ruby in creating the test scripts. Conditional operations like if-else, switch-case, and loop operations like do-while are possible with the WebDriver. The Selenium WebDriver is considered as one of the most important components in the Selenium Tool’s suite. Q2. What are the components of selenium? There are four basic components present in the WebDriver architecture. 1. Bindings 2. JSON Wire Protocol 3. Browser Drivers 4. Real Browsers Bindings are used by the developers in order to support multiple languages. JSON Wire Protocol is a transport mechanism to transfer the data between a server and a client. Browser Driver is specific to each browser to establish a secure connection with the browser without revealing the internal logic of the browser’s functionality. Real browsers are the browsers supported by the Selenium. They are Mozilla Firefox, Safari, Internet Explorer, and Google Chrome. Q3. What are the limitations of Selenium WebDriver? Some of the limitations of the Selenium WebDriver are, Only support for Web-Based applications Takes time to create test cases Difficult to set up a test environment No support for automation of windows application No built-in reporting facility
  • 2. Doesn’t have test tool integration for test management Difficult to process popups or frames Doesn’t have the ability to automate captcha and OTP Q4. What is searchcontext in selenium? The SearchContext is a topmost interface present in the Selenium WebDriver hierarchy. It has two methods that will be the abstract as SearchContext is an interface. The two methods are the findElement() and findElements(). The findElement() is used to find the first WebElement that matches the current context. The findElements() method is used to find all elements within the current context. It returns all the elements that match or returns empty if nothing matches. Q5. How to take input from user in selenium webdriver? There are different WebElements present in the Selenium to get the input from the user. They are TextBoxes, Password fields, Checkboxes, Radio buttons, file inputs, Dropdowns, etc. Developers can use any of these WebElements depending upon their needs to get the input from the user. Q6. List some Selenium commands in WebDriver? List some of the WbDriver Selenium commands are, get() - It takes a URL as its parameter and launches a new browser as it opens the specified URL in the browser instance. getClass() - It is used to retrieve the Class object that represents the runtime class of this object. getCurrentUrl() - It is used to retrieve the URL of the webpage that is currently processed by the user. getPageSource() - It is used to retrieve the page source of the webpage that is currently accessed by the user. getTitle() - It is used to retrieve the title of the webpage that is currently used by the user. getText() - It is used to retrieve the inner text of the specified web element. getAttribute() - It is used to retrieve the value of the specified attribute. getWindowHandle() - It is used to tackle the situation when there is more than one window to deal with. Q7. How to install selenium webdriver for python? To install Selenium WebDriver for python,
  • 3. You need to have python installed on your device. Then, you can use the pip command to install the Selenium as follows. pip install -U selenium Q8. How to check the selenium webdriver version? To check the version of the selenium webdriver installed, you can use the following command in the python shell. selenium._version_ Q9. List types of WebDriver APIs available in Selenium? The WebDriver API gives a more simplistic and compact programming interface for the selenium. They can be categorized into five types. 1. Domain 2. Synchronization 3. Navigation 4. Interrogation 5. Manipulation. Q10. What are the advantages of selenium webdriver? Some of the advantages of using Selenium WebDriver are, Selenium WebDriver has support for all languages and framework It is an open-source tool. So it can be publicly accessible with no upfront cost The Selenium script is compatible with multiple browsers It also has support in the various OS such as Windows, Linux, Mac OS, Unix, etc The Selenium tests are reusable so it can be tested across different browsers and operating systems It offers great flexibility The Selenium automation framework is easy to use with a friendly interface Q11. List some CSS selectors of selenium webdriver? Some of the mainly used CSS selectors are, Tag and ID
  • 4. Tag and Class Tag and Attribute Tag, Class, and Attribute Child elements such as Direct child, Sub-child, nth-child And, Sub-Strings that matches start with (^), ends with ($) and contains (*) Q12. List some alternatives of selenium webdriver? Some of the alternative tools to the Selenium WebDriver is, UI.Vision Kantu - An open-source task and test automation tool. Katalon Studio - A robust API, web, and mobile test automation solutions with continuous integration. CasperJS - A Javascript-based open-source navigation scripting and testing utility. Wildfire - A custom automation workflow tool. TestCafe - A Node JS end-to-end solution for testing web applications. Puppeteer - A Node JS library that offers a high-level API to control headless Chrome. Cypress.io - A front end automated testing tool created for the modern web. Robot framework - A generic test automation framework. Q13. List different types of waits available in selenium WebDriver? There are three different types of waits available in Selenium. They are the Implicit wait, Explicit wait, and Fluent wait. The implicit wait will wait for all the findElement() and findElements() once it has been defined. The explicit wait is defined for a particular web element and will wait for that single web element. The fluent wait is similar to the explicit wait but we can ignore the exception and define the polling time in it. Q14. List the programming languages supported by Selenium WebDiver? The programming languages supported by the Selenium WebDriver are - Java Python Ruby C# JavaScript
  • 5. Perl PHP. Q15. List some exceptions that you had faced in the Selenium web driver? Some of the common Exceptions in the Selenium WebDriver are, ElementNotVisibleException - Here, the element will not be visible even if it is present. ElementNotSelectableException - Here, the element is disabled. NoSuchElementException - Here, the WebDriver cannot determine the element during the runtime. NoSuchFrameException - Here, the switching to an invalid frame by the WebDriver is unavailable. NoAlertPresentException - Here, the switching to an invalid alert by the WebDriver is unavailable. NoSuchWindowException - Here, the switching to an invalid window by the WebDriver is unavailable. WebDriverException - Here, the WebDriver will be acting immediately after closing the browser. TimeoutException - Here, the command will not be completed in the specified time. SessionNotFoundException - It occurs when the session is not found in the Selenium WebDriver. StaleElementReferenceException - Here, the referenced element is longer present on the DOM page. Q16. What do you understand by MSBI? MSBI stands for (Microsoft Business Intelligence). It is an ETL tool used for database operations. The MSBI in turn composed of different tools that help in providing the best solution for the Business Intelligence and the Data Mining Queries. The tools present in the MSBI are the SSIS, SSAS, and SSRS. The MSBI allows the user to gain access to accurate and up-to-date information for better decision making in the organization. It is a Business Intelligence (BI) solutions tool that uses Visual Studio with the SQL server. Q17. What is the full form of SSIS? The full form of the SSIS is SQL Server Integration Services. Q18. Enlist some core elements of SSIS Designer?
  • 6. Some of the important components present in the SSIS are the packages, control flow elements, data flow elements, connection managers, variables, event handlers, and log providers. Please Visit OnlineInterviewquestions.com to download more pdfs