Selenium Advanced Interview Questions
- Actions in Selenium
- Write positive and negative scenario for Alerts
- Syntax for Windows handler
- Find odd number
- Disadvantages of Selenium
- Diff btwn get() and navigate().to()
- Dynamic Table with Check box
- Code for Screenshot
- Maps in Java
- Explain framework
- What is Pom.xml
- Tell the correct Xpath
- Xpath methods
- Css selector
- How to identify dynamic images
- Print only integers from strings
- Remove duplicates from arraylist
- Print the frame names
- How to read from XML or CSV file and store in hashmap
- Get value of a cell in Dynmaic table
- Burndow chart(Agile)
- Print these characters from a given string and change to uppercase
- Access specifiers in Java
- Difference between Priority and Severity
- Example for High Priority and Low Severity and vice versa
- Difference between Test Strategy and Test Scenario
- What is Software Metrics
- How to handle Dynamic Elements,since the webpage is designed in Angular Js
- Implicit and Explicit Waits
- Cross Browser Testing
- Method Overloading and Method Overriding
- Static Method
- Dependencies in Pom.xml
- Write code for fetching data from Excel
- Select Statement
- Assert and Verify
- Check a string is Palindrome or not
- Remove duplicate characters from a string and print
- Which Code Repository you are using(Ex: GitHub)
- How will you estimate the time to automate a scenario
- Right Click
- In a dynamic Table if I give 1 cell value,it should give me the values of other cells in that row
- Have you Developed any Tool,If yes explain
- Frames
- Read from a text file and store in HashMap
- Print the occurance of a character if it is present more tha once in a string
- Write code for nested drop-down,You have to check all the values in the dropdown
- Advantages of Selenium
- Try Catch
- How to check if a checkbox is displayed
- What all exceptions you have faced
- What all difficulties you have faced in Selenium
- What all TestNG Annotations used in project
- Where will you maintain the code
- 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 if there is no unique XPath?
- What is StaleElementReference Exception? Have you encountered it ever and how do you handle it?
- Do you run 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 do 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 do 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 a 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?
- 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 meant by fluent wait?
- What kind of framework have you made?
- What’s TestNG Listener Class & why do we use it?
- Any idea about 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?
- Is 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 its use?
- 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 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 the Java program from the command prompt?
- What is Continuous Integration?
- What is the return type of DataProvider?
- What’s Maven’s Life cycle?
- What’s the difference between plug-ins and dependencies?
- How to make a class as immutable?
Leave a Reply