Selenium Interview Questions: Selenium is a popular open-source automation testing tool for testing web applications across different browsers and platforms. It offers a wide range of features and capabilities, making it a go-to choice for many software testing professionals. As Selenium’s popularity grows, so does the need for experienced selenium testers.
To ensure that you have the necessary skills and knowledge to excel in a Selenium testing role, it’s crucial to prepare for interviews by reviewing commonly asked Selenium interview questions. This way, you can demonstrate your expertise and stand out from other candidates in the highly competitive job market. This article will provide an overview of some of the most commonly asked Selenium interview questions and offer insights into how best to answer them.
Selenium Interview Questions
Here we are to share some of the top Selenium interview questions, which will help you extend your knowledge of 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 is called first
- Drop down handling
- Maven cycle
- What happens when we call MVN clean
- TestNG parallel
- TestNG priority
- Data provider working
- Working on ArrayList
- What is the use of Thread count?
- If I have not provided an XML suit file in surefire, then what kind of exception will it throw
- Stale element exception
- Invalid argument exception
- Difference between no such element found exception and Stale element exception.
- What kind of exception have you 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 for 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 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 is your working
- How do you find the XPath
- What is a regular expression?
- How do you connect the database through selenium?
- How do you connect the database through java?
- Difference between verify and assert
- Tell me about yourself
- What is SDLC
- Explain 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 ten 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 the 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 with 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 five sub-questions, and the time limit was 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 checkboxes if multiple checkboxes exist in your application?
- What is the difference between Assert and Verify?
- Explain SDLC & STLC.
- What is the alternate way to click on the login button?
- How do you verify if the checkbox/radio is checked or not
- How do you get the href of a link / get the source of an image?
- Count the number of links on a page
- How to check all checkboxes on a page.
- What is the output of the below code? driver.findElements(By.tagName(“img”));
- How do you handle browser popups?
- How do you handle elements present inside the frame?
- How do you handle the Javascript alert/confirmation popups?
- 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 - What is the current WebDriver version?
- 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 a selenium web driver?
- What is the difference between selenium 1.0 and web driver?
- What are the advantages of the selenium web driver?
- How to handle multiple windows in selenium webdriver?
- Which locators are 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 the 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?
- How do you simulate the 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 was 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 log in 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 if the checkbox or radio button is selected?
- How do I 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 over 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 a 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 over an element?
- What is the use of the getOptions() method?
- What is the use of the deSelectAll() method?
- 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 open 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, and where is it 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 the page load?
- How to handle dynamic object
- The difference between thread waits, implicitly wait, and explicitly wait.
- What is a fluent wait?
- Question DropDown & keyboard & mouse operation
- How to handle drop-down
- List out all ends available in the Select class
- How to capture all the values from the drop-down
- How to capture only Selected values from the drop-down
- How to capture only non-selected values from the drop-down
- How to how with the multi-select value from the drop-down
- How to select all the similar values from the drop-down
- EG, we have a multi-select drop-down, like automation testing, manual testing, SQL testing, and Java, we should have all the option which contains the “testing” word
- How to work with custom select dropdown/ autosuggest dropDown
- How to take mouse over operation on the element
- 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, and 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 the 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 have you used & WHY?
- Explain the framework with components.
- What are 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 without a unique XPath?
- What is StaleElementReference Exception? Have you ever encountered it, and how have you handled it?
- Do you test cases in parallel with TestNG? If yes, how many threads, and does it cause any problems?
- What is the most common locator you use in your project?
- Have you ever done the profiling of a web page?
- How frequently do you use Thread.Sleep()?
- Suppose two elements on a web page have the same ids; how will you handle it?
- Can we create an object for an interface?
- What is the 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 do you 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.
- Comparable vs. comparator.
- Explain 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 Continuous Integration tool?
- How to handle a drop-down in Selenium?
Final Words
By reviewing common Selenium interview questions and practicing your answers, you can demonstrate your expertise and showcase your ability to perform well in a Selenium testing role. It’s important to remember that every interviewer will have unique preferences and expectations, so your responses must also be flexible and adaptable.
By mastering the art of answering Selenium interview questions, you can increase your chances of landing your dream job and jumpstarting your career in software testing. With continued practice and dedication, you can become a skilled and valuable Selenium tester, contributing to the success of your organization and ensuring that web applications function smoothly and efficiently.
If you have any suggestions, feedback, or questions about Selenium Interview Questions, please feel free to ask in the comment section below. We value your opinion and would love to hear from you. Our team of experts is here to provide you with the best possible guidance and assistance.
Your feedback will help us improve and update our content to provide the most relevant and up-to-date information on Selenium interview questions. So, don’t hesitate to leave your questions or comments below, and we will get back to you as soon as possible.
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
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