Selenium Interview Questions Best & New (Updated On 2021)
Selenium Interview Questions Best & New (Updated On 2021)
INTERVIEW QUESTIONS JAVA JAVA PROGRAMS TEST CASES SELENIUM MANUAL TESTING DIFFERENCE
Selenium Tutorial
TestNG Tutorial
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
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
Categories
Select Category
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?
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()?
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
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.
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
Comments
Archana says
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
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
https://www.softwaretestingo.com/basic-selenium-interview-questions/ 10/10