0% found this document useful (0 votes)
118 views10 pages

Selenium Interview Questions Best & New (Updated On 2021)

Uploaded by

jeffa123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views10 pages

Selenium Interview Questions Best & New (Updated On 2021)

Uploaded by

jeffa123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]

INTERVIEW QUESTIONS JAVA JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE

SoftwareTestingo » Interview Questions » Selenium Interview Questions

Selenium Interview Questions


Last Updated On: July 14, 2020 By Softwaretestingo Editorial Board
Search this website

Tutorials Important Links

Software Testing Jobs

Manual Testing Tutorial

Selenium Tutorial

Core Java Tutorial

TestNG Tutorial

What We Are Learn On This Post  Java Programs

Selenium Programs
Selenium Interview Questions And Answers: In our previous post read so many interview questions
on manual testing, software testing, and now in this post, we are going to share some of the Selenium Manual Test Cases
interview questions.
Interview Tips
Testing is one of the essential phases of the software development life cycle (SDLC). But in Manual Contact US
Testing, the testers are involved in the execution of test cases against the application to determine the
defect or bugs on application. the manual testing process has lots of challenges and also taking much www.softwaretestingo.com
time to validate the application.

Important Links
To ensure the quality of the web application, the industry are moving from manual testing to automation
testing. When we are talking about automation testing, the most famous tool is Selenium. Because the
Software Testing Interview Questions
Selenium tool is developed automate web application and it is open source too.
Agile Interview Questions
As per the request from so many testers, you have already said so many Selenium tutorials. Before going
through below interview questions who recommended you to get a whole idea about Selenium Manual Testing Interview Questions
WebDriver. For that, you can refer all our Selenium posts because there we are trying to share every
Testing Interview Questions
concept of Selenium in a detailed manner.
Selenium Interview Questions

Selenium Real Time Interview Questions

Selenium WebDriver Interview Questions

Automation Framework Interview Questions

Appium Interview Questions

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 1/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]

TestNG Interview
INTERVIEW QUESTIONS JAVA JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING Questions
DIFFERENCE

Java Interview Questions

Core Java Interview Questions

Categories

Select Category

Selenium Interview Questions

Selenium Interview Questions


Here we are to share some of the top Selenium interview questions, which will help you extend your
knowledge on Selenium. As you can see, where you are trying to cover most asked Selenium interview
questions in an interview point, it should be better if you decide to answer all of these Selenium interview
questions.

Difference between maven test and install


In your framework what called first
Drop-down handling
Maven cycle
What happens when we call MVN clean
TestNG parallel
TestNG priority
Data provider working
Working of Array list
What is the use of Thread count?
If I have not provided XML suit file in surefire then what kind of exception it will throw
Stale element exception
Invalid argument exception
Difference between no such element found exception and Stale element exception
What kind of exception you have faced in selenium

Latest Selenium Interview Questions


Give an example of abstraction(writing program)
How many test cases have you written and automated?
What are the challenges you met while automating?
How will you handle the drop-down list?
How will you Download the popup?
What are the different browsers you have used
What are the settings to be done in the case of IE chrome and Firefox browsers?
What’s Overloading and overriding n difference
How do you use selenium IDE
Three versions of selenium n drawbacks
In Eclipse, while automating how will b the file structure of your scripts
Explain about your selenium profile
What is the difference between a data-driven and hybrid framework?
What is a hybrid framework?
Which framework have you used in your project?
Where do you add a test case?
What is // and /slash
What are the challenges you have faced in your project?
What is XPath
Which selenium version your working
How do you find the XPath
What is a regular expression?

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 2/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]
How do you connect
INTERVIEW the database
QUESTIONS JAVAthrough
JAVAselenium?
PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
How do you connect the database through java?
Difference between verify and assert
Tell me about yourself
What is SDLC
Explain about selenium architecture in your company
What is Selenium IDE
What is Selenium RC
What is Selenium Webdriver
Difference between RC and Webdriver
Write a program to reverse a string in java
Write an SQL query to list the first 10 rows in two columns empname and salary
What is Bug lifecycle?
What is the final method in java?
How do you call a function in java?
What kind of framework do you use?
What is JUnit and how do you read data from Xls
Have you used TestNG?
How do you work on selenium?
How do you handle popups?
How do you handle the HTTPS website in selenium?
What is agile
What is sprint
How do you get requirements?
How do you write functional test cases based on requirements?
How do you start a selenium server?
How do you download and use selenium?
What problems did you face in selenium?
How do you identify an element in Xpath?
What is the use of Xpath?
How much do you rate yourself in Java and SQL?
The aptitude test booklet consisted of 15 pages and 29 questions, and the few questions had 5 sub-
questions, and the time limit is 1 hour.
Different types of locators?
Selenium Framework that you are using in your current project?
How do you identify the Xpath of an element on your browser?
Selenium function used for retrieving the attribute or value?
How do you differentiate checkbox if more than one checkbox exists in your application?
Difference between Assert and Verify?
Explain SDLC & STLC?
What is the alternate way to click on login button?
sendKeys(Keys.ENTER)
If the element is inside a form, you can use driver.findElement().submit();
How do you verify if the checkbox/radio is checked or not
driver.findElement().isSelected();
How to get the href of a link / get the source of image
driver.findElement(By.linkText(“”)).getAttribute(“href”);
driver.findElement(By.xpath(“”)).getAttribute(“src”);
Count the number of links in a page
List<WebElement> allLinks = driver.findElements(By.tagName(“a”));
System.out.println(allLinks.size());
How to check all checkboxes in a page
for (WebElement chkBox : allChkBoxes)
{
chkBox.click();
}
for(int i=0;i<=allChkBoxes.size();i++)
{
allChkBoxes.get(i).click();
}

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 3/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]
What is the output
INTERVIEW of the belowJAVA
QUESTIONS code? JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
driver.findElements(By.tagName(“img”));
How do you handle browser popup?
How do you handle elements present inside the frame?
How do you handle Javascript alert/confirmation popup?
How do you launch the IE/chrome browser?
How to perform right-click using WebDriver?
How do we perform drag and drop using WebDriver?
How to send ENTER/TAB keys in WebDriver?
Example of method overload in WebDriver
How do you upload a file?
How do you click on a menu item in a drop-down menu?
How do you work with a page onload authentication popup/windows based popup?
How do you simulate the browser back and forward?
How do you get the current page URL?
What is an XPath?
What is the difference between ‘/’ and ‘//.’
What is the difference between findElement and findElements?
How do you achieve synchronization in WebDriver?
Explain implicit and explicit wait
How do you handle untrusted certificates?
Write the code for Reading and Writing to Excel through Selenium
How do you get the typed text from a textbox?
What are the different exceptions you get when working with WebDriver?
InvalidSwitchToTargetException [The frame or window target to be switched doesn’t exist.]
NoSuchElementException
NoSuchFrameException
TimeoutException
SessionNotFoundException
Other questions
What is the current WebDriver version?
What is the SIDE?
What is WebDriver
Explain the challenges you faced in automation
What are the languages supported by WebDriver?
What is the difference between verify and assert?
What are the limitations of Selenium IDE?
What are the browsers supported by Selenium IDE?
What are the disadvantages of Selenium?
How many ways can you identify an element using WebDriver / which are the locators used for
recognizing the objects in Selenium WebDriver?
How do you clear the contents of a textbox in selenium?
Is it possible to interact with hidden elements using WebDriver?

Selenium Interview Questions For Experienced


What is a Framework?
What are the different kinds of Frameworks?
What is Keyword driven Framework?
What is the Hybrid Framework?
Different components of your framework?
Can you explain the Framework flow with a diagram?
How do you accommodate project-specific methods in your framework?
How is the failure handled in your framework?
What kind of reports are generated by your framework?

Selenium Interview Questions For 3 Years Experience


Which is the default port on which selenium RC runs?
What are the prerequisites to run selenium web driver?
What is the difference between selenium 1.0 and web driver?
What are the advantages of the selenium web driver?

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 4/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]
How to handleQUESTIONS
INTERVIEW multiple windows in selenium
JAVA JAVA webdriver?
PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
Which are the locators used for recognizing the objects in the selenium webdriver?
What is webdriver backed selenium?
When to use web driver backed selenium?
How to invoke an application in webdriver?
Where to download selenium webdriver?
Explain the technical problems that you had with the Selenium tool?
What is Selenium Grid?
How many browsers are supported by Selenium IDE?
Can Selenium test an application on iPhone’s Mobile Safari browser?
Can Selenium test an application on an Android browser?
How many programming languages can you use in Selenium Web driver?
Have you read any good books on selenium?
Use of following-sibling?
What is the Page Object design pattern?
What is StaleElementException? When does it occur?
How to get the number of frames on a page?
How to verify that an element is not present on a page?// use. length
How do you simulate scroll down action?
What is the Robot class?
How do you verify that the given list of numbers on a web page is sorted in ascending order?
How to verify the presence of the success message on a page?
Which is the package which is to be imported while working with a webdriver?
Who is the first person who started working on selenium?
Who is the person who started on a webdriver?
How to verify whether the background color of a paragraph is green or not?
How to verify that the image changes on mouse hover?
How to login to Facebook using webdriver?
How do you check that the pagination on the google search page is working fine or not?
How to check if an element is visible on the web page?
How to check if a button is enabled on the page?
How to check if a text is highlighted on the page?
What is selenium’s recording language?
What are the capabilities of Selenium IDE?
What are the selenium components?
How to insert a breakpoint in selenium IDE?
How to insert a comment in selenium IDE?
How do you handle Ajax controls using selenium?
How do you handle the secured connection error in HTTPS?
How do you compare two strings or values that are the same?
How to handle the dynamic alerts which don’t always appear?
How to upload a file using selenium?
How to navigate with browser buttons in selenium webdriver?
How to run the tests without a browser or with an HTML unit driver in selenium webdriver?
How to check the checkbox or radio button is selected?
How to get the title of the page?
How do you get the width of the textbox?
How do you get the attribute of the web element?
How do you read the text from the hidden elements?
What is the use of apache poi?
How to check whether a text is underlined or not?
How to verify whether the size of a div is 320px or not?
How to check the cursor type changes on hovering on a link?
How to verify that the font-size of a text is 12px?
How to verify that an image is to the right of the text?
How to verify the presence of a horizontal line on a page?
How to change the URL on a web page using selenium web driver?
How to get the CSS attribute of a web element using the web driver?
How to verify the presence of tooltips on a web page?
How to hover the mouse on an element?
What is the use of the getOptions() method?

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 5/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]
What is the use
INTERVIEW of the deSelectAll()
QUESTIONS JAVAmethod?
JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
Can you handle flash using a web driver?
Is WebElement an interface or a class?
FirefoxDriver is a class or an interface, and from where is it inherited?
Which is the super interface of the webdriver?
What is the difference b/w close() and quit()?
What is the difference b/w getWindowHandles() and getWindowHandle() ?
What is the use of contextClick()?
How to press Shift+Tab?
How to enter :(colon using web driver)?
How to perform double click using webdriver?
How to check whether, on click of an element, a new tab will be opened before clicking on that
element?
What is the use of AutoIt?
What is the difference between dragAndDrop() and dragAndDropBy()?
How to type text in a new line inside of a text area?
How to switch back from a frame?
What is the use of getPageSource()?

Selenium Interview Questions For 5 Years Experience


Explain the Selenium Architecture
Difference between Selenium-IDE & Selenium RC, WebDriver
Difference between
WebDriver driver = new FirefoxDriver()
FirefoxDriver driver = new FirefoxDriver()
Difference between get(), navigate().to()
What is API, where it is being used
Difference between quit() & close()
How to maximize & minimize the browser
What is webdriver “interface” or Class
What is a Super interface for WebDriver
What is WebElement & explain all the Mtds available in WebElement
How many locators are available in Webdriver, & which locator is preferred
How to check whether the object is available in GUI
How to check the text from the UI
How to capture color, height, width, font – the size of the Element
How to get the Location of the Web element
How to check whether the object is selected or not?
How to check whether the object is enabled in GUI
How to Delete All Cookies
Do we use any constructor in webdriver
How to compare Image
How to get the web element height & width
Question on WebDriver wait statement
What is Synchronization
How to handle Synchronization wait available in Webdriver
Which wait statement will be used to wait until page load
How to handle dynamic object
Difference between thread wait, implicitly wait, explicitly wait
What is a fluent wait?
Question DropDown & keyboard & mouse operation
How to handle drop-down
List out all ends available in Select class
How to capture all the value from the drop-down
How to capture only Selected value from the drop-down
How to capture only non-selected value from the drop-down
How to how with the multi-select value from the drop-down
How to select all the similar value from the drop-down
EG we have a multi-select drop-down, like automation testing, manual testing, SQL testing, Java, we
should all the option which contains “testing” word
How to work with custom select dropdown/ autosuggest dropDown

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 6/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]
How to take mouse
INTERVIEW over operation
QUESTIONS JAVA on the
JAVAelement
PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
How to perform keyboard operation
How to perform “control+c.”
Difference between build() & perform()
How to perform drogAndDrop Operation
How to perform right-click operation

Selenium Webdriver Interview Questions on Window Handling


How to work with a new Tab, new Browse-window
How to work with the new Tab, new Browse-window with our GetWindowHAnles() Ltd
How to handle Alert popup
How to work Calender POP-up
How to work with advertisement popup
How to work with SSL pop-up
How to File Download PopUP
How to handle File Upload Pop-up using AutoIT
How to Handle File Upload Pop-up using ROBOT class
How to Handle Browser Scroll-bar
How to execute javascript

Selenium Interview Questions On Frame Handle


How to work with frame-Window
How to Work with nested Frame
How to work with multiple frames
How many ways to work with a frame
How to work frame, when the frame does not have id & @name attribute

Selenium Interview Questions For Multiple Browser


What is IllegalState Exception
How to work with IE, Chrome browser
How to write XPath in IE & chrome browser

Selenium Interview Questions For 2 Years Experience


What is a framework, Explain types of framework
Which framework you have used& WHY?
Explain framework, with components
What is Explicit wait and Implicit wait?
What is a headless browser?
How to get a screenshot in Selenium? Can you write the syntax?
What are the different types of Locators in Selenium?
What is the best way to locate a web element if there is no unique XPath?
What is StaleElementReference Exception? Have you encountered it ever and how you handled it?
Do you test cases in parallel with TestNG? If yes, how many threads, and does it cause any
problem?
What is the most common locator you use in your project?
Have you ever done the profiling of a web page?
How frequently you use Thread.Sleep()?
Suppose there are two elements on a web page with the same ids, how will you handle it?
Can we create an object for an interface?
Difference between @BeforeTest and @BeforeMethod in TestNG?
How does Selenium interact with the Web browser?
Can you make the constructor of a class static?
How do you maintain your test scripts, and how frequently you have to modify them?
How to find all broken links on a webpage?
Explain your Automation Framework.
Write a dynamic XPath to locate a table’s 2nd row 3rd column data.
Hash map vs. Hash table.
What is the significance of the hash table?
What is the return type of findElements?
What’s the difference between a Maven project and a Java project?
Getwindowhandle vs. Getwindowhandles and the return types.

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 7/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]
Comparable vs.
INTERVIEW comparator. JAVA JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
QUESTIONS
Explain about the project along with how the Automation was done.
How to upload a file in Selenium?
How to upload a file without using Sendkeys?
How to connect to a Database using Selenium?
Any idea or experience with the Continous Integration tool?
How to handle a drop-down in Selenium?
What is WebDriver – interface?
Why do we need Interface in a test?
How to integrate your test with Jenkins?
Any example or practical usage of Run time polymorphism?
How to find dynamic elements?
What is the difference between CSS selector and XPath? Which is better from a performance
perspective?
Difference between Instantiate and Initialize in Java.
What is mean by fluent wait?
What kind of framework have you made?
What’s TestNG Listener Class & why do we use it?
Any idea about the Selenium Grid? Or Parallel execution.
What are the challenges you face when running automation scripts?
Difference between == and =.
What’s Page Factory?
How to click a button without using click() and without using CSS & XPath selectors?
Are multiple inheritances possible in Java? Why?
Are all methods in an abstract class, abstract?
Can we make an Object of Abstract class or an Interface?
What’s the difference between method overloading and overriding?
What’s the use of the Java Static keyword?
Different types of polymorphism.
Can we write webdriver dr = new webdriver();
What are the different plugins used for Maven? And it’s used?
Difference between Abstract and Interface?
Try, Throw & Catch syntax. And why is it used?
How do you manage to re-run only failed test cases?
How to make TestNG.xml at run-time?
What’s a Singleton class?
Can we have Finally block without Try & catch blocks?
Use of Super and This keyword in Java.
What’s Data binding?
What’s the difference between Final, Finally, and Finalize?
Difference between Absolute and Relative XPath? Which is faster?
How to execute a Java program from the command prompt?
What is Continuous Integration?
What is the return type of DataProvider?
What’s the Maven Life cycle?
What’s the difference between plug-ins and dependencies?
How to make a class as immutable?

Final Words

We try to add as many as Selenium interview questions in this post. If you’re going through the list of
Selenium interview questions, you will be sure that it will help you tighten your preparation for the
upcoming Selenium interviews.

You can check also:

Software Testing Interview questions


Agile Interview Questions
Manual Testing Interview Questions
Selenium Webdriver Interview Questions
Selenium Real-time interview Questions

Please leave your comment in the comment section if you think some of the interview questions should
be added or the questions you have faced in an interview, but those questions are not listed in this post.

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 8/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]

INTERVIEW QUESTIONS JAVA JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE

Filed Under : Interview Questions

Comments

Archana says

FEBRUARY 26, 2020 AT 1:42 PM

These all are very helpful to us….thanks a lot….can you do interview questions on selenium
python please I m on that domain…can you please do that article on selenium python….real
time interview questions

Reply

Softwaretestingo Editorial Board says

FEBRUARY 26, 2020 AT 6:46 PM

Thanks Archana, for such kind words and selenium python interview questions also in
our list will try to update those as well in our platform

Reply

Leave a Reply
Your email address will not be published. Required fields are marked *

Comment

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 9/10
5/26/2021 Selenium Interview Questions Best & New [ Updated on 2021 ]

INTERVIEW QUESTIONS JAVA JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE

Name *

Email *

POST COMMENT

Copyright © 2021 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy

https://www.softwaretestingo.com/basic-selenium-interview-questions/ 10/10

You might also like