1000 Selenium Interview Questions from basics to advanced
1000 Selenium Interview Questions from basics to advanced
- What is Automation Testing?
- What is the difference between Manual and Automation Testing?
- What are the benefits of Automation Testing?
- Which Test cases needs to be automated?
- What are the popular test automation tools for functional testing?
- What is the main purpose of Automation Testing?
- What is the goal of Automation Testing?
- Why Selenium should be selected as a Test tool?
- What is Selenium and what are the different components and versions of Selenium?
- What are the testing types that can be supported by Selenium?
- What are the limitations of Selenium?
- What is the difference between Selenium IDE, Selenium RC and Selenium WebDriver?
- When should I use Selenium IDE?
- What are locators, different types of locators that can be used in Selenium and their priorities?
- What is the difference between Assert and Verify commands?
- What is an XPath?
- What is the difference between ‘/’ and ‘//’ in XPath?
- What is Same Origin Policy and how it can be handled? How to overcome same origin policy through web driver?
- When should I use Selenium Grid?
- What do we mean by Selenium 1, Selenium 2 and Selenium 3?
- What is the latest Selenium tool?
- How do I launch the browser using WebDriver?
- What are the different types of drivers available in WebDriver?
- What are the different types of waits available in WebDriver?
- How to type into a text box using Selenium?
- How can you find whether an element is displayed on the screen using Selenium?
- How can we get a text on a web element using Selenium?
- How to handle a drop-down field and select a value from it using Selenium ?
- What are the different types of navigation commands in WebDriver?
- How to click on a hyperlink using Selenium WebDriver?
- How to handle frames in WebDriver?
- How do you use findElement() and findElements()?
- How to find more than one web element in to a list?
- What is the difference between driver.close() and driver.quit() commands?
- Can Selenium handle window based pop up?
- How can we handle window based pop up using Selenium?
- How can we handle web-based pop up using Selenium?
- How to assert title of the web page?
- How to mouse hover on a web element using WebDriver?
- How to retrieve CSS Properties of an element?
- How to capture screen-shot in Selenium WebDriver ?
- What is JUnit?
- What are JUnit annotations?
- What is TestNG and what is its use?
- How is TestNG better than JUnit?
- How to set test case priority in TestNG?
- How can I read test data from Excel files?
- What is the difference between POI and JXL Jars?
- What is the difference between Selenium and QTP/UFT?
- Can WebDriver test mobile applications?
- Can Captcha be automated using Selenium?
- What is Object Repository and how can we create an Object Repository in Selenium?
- What types of tests have you automated?
- How many test cases have you automated per day?
- Why do you prefer Selenium Automation tool?
- What is Selenium IDE?
- What are the browsers supported by Selenium IDE?
- What is Selenium RC?
- What is Selenium WebDriver?
- What is Selenium Grid and when do we go for it?
- What are the advantages of Selenium Grid?
- What are the types of WebDriver API’s that are supported/available in Selenium?
- Which WebDriver implementation claims to be the fastest?
- What are the programming languages supported by Selenium WebDriver?
- What are the operating systems supported by Selenium WebDriver?
- What are the open source frameworks supported by Selenium WebDriver?
- What is an XPath and What is the difference between Absolute and Relative XPath? Give examples?
- What is the difference between Soft Assert and Hard Assert in Selenium?
- What are the verification points available in Selenium?
- Is WebDriver a class or interface?
- Is FirefoxDriver a class or interface?
- What is the super interface of WebDriver ?
- Explain the line of code WebDriver driver = new FirefoxDriver();?
- Why do we create a reference variable ‘driver’ of type WebDriver and what is the purpose of its creation?
- What are the different types of exceptions you have faced in Selenium WebDriver?
- How to login into any site if it is showing an authentication pop-up for Username and Password?
- What is implicit wait in Selenium WebDriver?
- What is WebDriver Wait in Selenium WebDriver?
- How to input text into the text box fields without calling the sendKeys()?
- How to clear the text inside the text box fields using Selenium WebDriver?
- How to get an attribute value of an element using Selenium WebDriver?
- How to press Enter key on text box in Selenium WebDriver?
- How to pass a text execution for 5 seconds at a specific point?
- Is Selenium Server needed to run Selenium WebDriver scripts?
- What happens if we run this command driver.get(“www.google.com”);?
- What is an alternative to driver.get() method to open a URL using Selenium WebDriver?
- What is the difference between driver.get(“URL”) and driver.navigate().to(“URL”) commands?
- Can I navigate back and forth in a browser using Selenium WebDriver?
- What are the different types of navigation commands in Selenium WebDriver?
- How to fetch the current page URL in Selenium WebDriver?
- What is a Framework?
- What are the advantages of Automation Framework?
- What are the different types of Frameworks?
- How do you decide a particular framework for a project?
- How can we maximize browser window in Selenium WebDriver?
- How to delete cookies in Selenium?
- What are the different ways for refreshing the page using Selenium WebDriver?
- What is the difference between driver.getWindowHandle() and driver.getWinowHandles() in Selenium WebDriver and their return type?
- How to handle hidden elements in Selenium WebDriver?
- How can you find broken links in a page using Selenium WebDriver?
- How to find more than one web element in the list?
- How to read a JavaScript variable in Selenium WebDriver?
- What is JavascriptExecutor and in which case JavascriptExecutor will help in Selenium automation?
- How to handle Ajax calls in Selenium WebDriver?
- List some scenarios which we cannot automate using Selenium WebDriver?
- How you build object repository in your project framework?
- What is Page Object Model (POM) and its advantages?
- What is Page Factory?
- What is the difference between Page Object Model and Page Factory?
- What are the advantages of Page Object Model?
- How can use Recovery Scenario in Selenium WebDriver?
- How to upload a file in Selenium WebDriver?
- How to download a file in Selenium WebDriver?
- How to run Selenium WebDriver tests from command line?
- How to switch to frames in Selenium WebDriver?
- How to connect to a database in Selenium?
- How to resize browser window using Selenium WebDriver?
- How to scroll web page up and down using Selenium WebDriver?
- How to perform right click (Context Click) action in Selenium WebDriver?
- How to perform double click action in Selenium WebDriver?
- How to perform drag and drop action in Selenium WebDriver?
- How to highlight elements using Selenium WebDriver?
- Have you used any cross browser testing tool to run Selenium Scripts on cloud?
- What are the DesiredCapabitlies in Selenium WebDriver and their use?
- What is Continuous Integration?
- How to achieve database testing in Selenium?
- What is TestNG?
- What are Annotations and what are the different annotations available in TestNG?
- What is TestNG Assert and list out some common assertions supported by TestNG?
- How to create and run TestNG.xml?
- How to set test case priority in TestNG?
- What is parameterized testing in TestNG?
- How to run a group of test cases using TestNG?
- What is the use of @Listener annotation in TestNG?
- How can we create a data driven framework using TestNG?
- Where you have applied OOPS in Automation Framework?
- How to handle Chrome Browser notifications in Selenium?
- Explain any Test Automation Framework?
- Tell some popular Test Automation Frameworks?
- Why Framework?
- Which Test Automation Framework you are using and why?
- Mention the name of the Framework which you are using currently in your project, explain it in details along with its benefits?
- Mention the name of the Framework which you have hands on experience?
- Can you explain the Selenium framework which you have used in your project?
- What type of test cases do you pick up to automate?
- What type of test cases you won’t pickup to automate?
- What is Selenium and what it is composed of?
- What is Selenium 1.0?
- What is Selenium 2.0?
- What is Selenium 3.0?
- Explain what is assertion in Selenium and what are the different types of assertions?
- What is the use of XPath in Selenium?
- List out the technical challenges with Selenium?
- What is the difference between type keys and type commands?
- What are the four parameters you have to pass in Selenium?
- While using click() command, can you use screen coordinates?
- What is the difference between setSpeed() and sleep() methods?
- What is heightened privileged browsers?
- What are the features of TestNG and list some of the functionalities which makes it more effective?
- What is the difference between Implicit Wait and Explicit Wait?
- Which attribute you should consider throughout the script in frame for (if no frame id as well as no frame name”)?
- Explain the different JUnit annotations mostly used while writing the Selenium scripts?
- Explain what is a data driven framework?
- Explain what is a keyword driven framework?
- Explain how Selenium Grid works?
- Can we use Selenium Grid for performance testing?
- List the advantages of Selenium WebDriver over Selenium Server?
- Mention the different capabilities of Selenium WebDriver ?
- While injecting capabilities in WebDriver to perform tests on a browser (which is not supported by a webdriver), what is the limitation that one can come across?
- Explain how you can find broken images in a page using Selenium WebDriver?
- Explain how you can switch back from a frame?
- Explain how you can handle colors in Selenium WebDriver?
- How can you prepare customized HTML report using TestNG in hybrid framework?
- How can you generated HTML report from your test scripts?
- Explain how you can insert a break point in Selenium IDE?
- Explain how you can debug the tests in Selenium IDE?
- What are the different types of Selenese?
- What are the limitations of Selenium IDE?
- What are the two modes of views in Selenium IDE?
- In Selenium IDE, what are the element locators that can be used to locate the elements on web page?
- In Selenium IDE, can you generate random numbers and dates for test data?
- How can you convert any Selenium IDE tests from Selenese to other other language?
- Using Selenium IDE, is it possible to get data from a particular HTML table cell?
- Explain what can cause a Selenium IDE test to fail?
- In Selenium IDE, explain how you can execute a single line?
- In which format does the source view show the script in Selenium IDE? Explain, how you can insert a start point in Selenium IDE?
- What are regular expressions and how you can use them in Selenium IDE?
- What are core extensions in Selenium IDE?
- How you will handle switching between multiple windows in Selenium IDE?
- How you will verify the specific position of an Web Element in Selenium IDE?
- How you will retrieve the message in an Alert box in Selenium IDE?
- Why Selenium RC is preferred over Selenium IDE?
- What is the difference between Selenium RC and Selenium WebDriver?
- What are the advantages of using Selenium RC over Selenium IDE?
- What are the technical limitations while using Selenium RC?
- Why to use TestNG with Selenium WebDriver?
- Using Selenium, how can you handle Network latency?
- What is the command that can be used for entering values into the text box fields?
- What are the challenges in handling AJAX calls in Selenium WebDriver?
- What is IntelliJ and how it is different from Eclipse IDE?
- What are the different ways to customize TestNG report?
- What is required to generated the PDF reports?
- What are Selenium WebDriver Listeners?
- What are the different types of Listeners in TestNG?
- What is the API that is required for implementing Database Testing using Selenium WebDriver?
- When to use AutoIt?
- Why do we need Session Handling while using Selenium WebDriver?
- What is the advantage of using GitHub for Selenium?
- What are the advantages and disadvantages of Selenium over other testing tools like QTP and TestComplete?
- What is exception test in Selenium?
- Why and how will you use an Excel sheet in your Selenium project?
- How can you redirect browsing from a browser through some proxy?
- How do you achieve synchronization in WebDriver?
- Write a code to wait for a particular element to be visible on a page.
- Write a code to wait for an alert to appear.
- How to scroll down a page using JavaScript in Selenium?
- How to scroll down to a particular element?
- How to handle keyboard and mouse actions using Selenium?
- Which files can be used as data source for different frameworks?
- How can you fetch an attribute from an element?
- How to retrieve typed text from a text box?
- How to send alt or shift or control or enter or tab key in Selenium WebDriver?
- How to set the size of browser window using Selenium?
- How to switch to a new window (new tab) which opens up after you click on a link?
- How to pass parameters through testng.xml to a test case?
- Explain DataProviders in TestNG using an example
- Can I call a single data provider method for multiple functions and classes?
- How to skip a @Test method or a code block in TestNG?
- What is Soft Assertion in selenium and how can you mark a test case as failed by using soft assertion?
- Explain what is a Group Test in TestNG?
- Explain How does TestNG allow you to state dependencies with an example?
- Explain what does @Test(InvocationCount=?) and @Test(threadPoolSize=?) indicate?
- How is Selenium different from commercial browser automation tools?
- Which language is used in Selenium IDE?
- What are Accessors in Selenium IDE?
- Can I control the speed and pause the test executed in Selenium IDE?
- There is id, name, XPath, CSS locator, which one should I use?
- Selenium RC, any way to speed up the Selenium Server load time?
- How to set a global base URL for every test case of one test suite file in Selenium IDE?
- How to check for 404 using Selenium WebDriver?
- How to get HTTP Response code using Selenium WebDriver?
- How to stop selenium from creating temporary Firefox profiles using web driver?
- How to close browser popup window in Selenium WebDriver?
- How to select values in combo-box item using Selenium WebDriver?
- How to get the html source code of a particular web element using Selenium WebDriver
- What are the different driver classes available in Selenium WebDriver API?
- What automation tools could be used for post-release validation with continuous intergration?
- Does the latest version of Selenium WebDriver support Mobile Testing?
- What is the major differences between XPath Expressions and CSS Selectors?
- How to select a check box in Selenium?
- How to verify whether the checkbox option or radio button is selected or not?
- What is the alternative way to click on login button?
- How can you find the value of different attributes like name, class, value of an element?
- How to verify whether a button is enabled on the page?
- What kind of mouse actions can be performed using Selenium?
- What kind of keyboard operations can be performed in Selenium?
- Can Bar Code Reader be automated using Selenium?
- How to locate a link using its text in Selenium?
- Write the program to locate/fetch all the links on a specific web page?
- What is Robot API? What methods of Robot class do you know?
- How do you get the height and width of a text box field using Selenium?
- Which package can be imported while working with WebDriver?
- What is the purpose of deselectAll() method?
- What is the purpose of getOptions() method?
- How to handle alerts in Selenium WebDriver?
- What is hybrid framework?
- What could be the cause for Selenium WebDriver test to fail?
- What is the difference between @Factory and @DataProvider annotation?
- How can we run test cases in parallel using TestNG?
- What are the different forms of Selenium?
- Can we test APIs or web services using Selenium WebDriver?
- How can we locate an element by only partially matching its attributes value in XPath?
- How can we locate elements using their text in XPath?
- How can we move to parent of an element using XPath?
- How can we move to nth child element using XPath?
- What is the syntax of finding elements by class using CSS Selectors?
- What is the syntax of finding elements by id using CSS Selectors?
- How can we select elements by their attribute value using CSS Selector?
- How can we move to nth child element using CSS Selector?
- How can we submit a form in Selenium?
- How can we fetch a text written over an element?
- What are some expected conditions that can be used in Explicit Waits?
- How can we fetch the title of the page in Selenium?
- How can we fetch the page source in Selenium?
- What are some randomly encountered exceptions in Selenium ?
- How to check which option in the drop-down is selected?
- How to handle HTTPS websites in Selenium? Does Selenium support them?
- How to accept the SSL untrusted connection?
- What is HtmlUnitDriver?
- What is the use of @Factory annotation in TestNG?
- What are some common assertions provided by TestNG?
- Name an API used for logging in Java?
- What is the use of logging in Automation?
- Can Selenium Test an application on Android Browser?
- How to select a radio button in Selenium WebDriver?
- How to handle AJAX popup windows?
- Give the example for method overload in Selenium?
- Write the code for Reading and Writing to Excel through Selenium?
- What are the pre-requisites for running Selenium WebDriver?
- What is WebDriverBackedSelenium?
- How to invoke an application in Selenium WebDriver?
- How to get the number of frames on a page using Selenium WebDriver?
- What is the command line we have to write inside a .bat file to execute a Selenium Project when we are using testng?
- How to check if a text is highlighted on the page?
- How to check whether a text is underlined or not?
- How to change the URL on a web page using Selenium WebDriver?
- There is a scenario whenever “Assert.assertEquals()” function fails automatically it has to take screenshot. How can you achieve this?
- Open a browser in memory, means whenever it will will try to open a browser the browser page must not come and can perform the operation internally?
- While explaining the framework, what are points which should be covered?
- How to press Shift+Tab?
- What is the use of contextClick()?
Comments
Post a Comment