Question

In: Computer Science

Need huge list of interview questions and answers for java selenium Web-driver.

Need huge list of interview questions and answers for java selenium Web-driver.

Solutions

Expert Solution

Answer:-

Q #1) What is Automation Testing?

Automation testing or Test Automation is a process of automating the manual process to test the application/system under test. Automation testing involves the use of a separate testing tool which lets you create test scripts which can be executed repeatedly and doesn’t require any manual intervention.

Q #2) What are the benefits of Automation Testing?

Benefits of Automation testing are:

  1. Supports execution of repeated test cases
  2. Aids in testing a large test matrix
  3. Enables parallel execution
  4. Encourages unattended execution
  5. Improves accuracy thereby reducing human-generated errors
  6. Saves time and money

Q #3) Why should Selenium be selected as a test tool?

Selenium

  1. is a free and open source
  2. have a large user base and helping communities
  3. have cross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari etc.)
  4. have great platform compatibility (Windows, Mac OS, Linux etc.)
  5. supports multiple programming languages (Java, C#, Ruby, Python, Pearl etc.)
  6. has fresh and regular repository developments
  7. supports distributed testing

Q #4) What is Selenium? What are the different Selenium components?

Selenium is one of the most popular automated testing suites. Selenium is designed in a way to support and encourage automation testing of functional aspects of web-based applications and a wide range of browsers and platforms. Due to its existence in the open source community, it has become one of the most accepted tools amongst the testing professionals.

Selenium is not just a single tool or a utility, rather a package of several testing tools and for the same reason, it is referred to as a Suite. Each of these tools is designed to cater different testing and test environment requirements.

The suite package constitutes the following sets of tools:

  • Selenium Integrated Development Environment (IDE) – Selenium IDE is a record and playback tool. It is distributed as a Firefox Plugin.
  • Selenium Remote Control (RC) – Selenium RC is a server that allows a user to create test scripts in the desired programming language. It also allows executing test scripts within the large spectrum of browsers.
  • Selenium WebDriver – WebDriver is a different tool altogether that has various advantages over Selenium RC. WebDriver directly communicates with the web browser and uses its native compatibility to automate.
  • Selenium Grid – Selenium Grid is used to distribute your test execution on multiple platforms and environments concurrently.

Q #5) What are the testing types that can be supported by Selenium?

Selenium supports the following types of testing:

  1. Functional Testing
  2. Regression Testing

Q #6) What are the limitations of Selenium?

Following are the limitations of Selenium:

  • Selenium supports testing of only web-based applications
  • Mobile applications cannot be tested using Selenium
  • Captcha and Barcode readers cannot be tested using Selenium
  • Reports can only be generated using third-party tools like TestNG or JUnit.
  • As Selenium is a free tool, thus there is no ready vendor support through the user can find numerous helping communities.
  • The user is expected to possess prior programming language knowledge.

Q #7) What is the difference between Selenium IDE, Selenium RC, and WebDriver?

Browser Compatibility Selenium IDE comes as a Firefox plugin, thus it supports only Firefox Selenium RC supports a varied range of versions of Mozilla Firefox, Google Chrome, Internet Explorer and Opera. WebDriver supports a varied range of versions of Mozilla Firefox, Google Chrome, Internet Explorer and Opera.
Also supports HtmlUnitDriver which is a GUI less or headless browser.
Record and Playback Selenium IDE supports record and playback feature Selenium RC doesn't supports record and playback feature. WebDriver doesn't support record and playback feature
Server Requirement Selenium IDE doesn't require any server to be started before executing the test scripts Selenium RC requires server to be started before executing the test scripts. WebDriver doesn't require any server to be started before executing the test scripts
Architecture Selenium IDE is a Javascript based framework Selenium RC is a JavaScript based Framework. WebDriver uses the browser's native compatibility to automation
Object Oriented Selenium IDE is not an object oriented tool Selenium RC is semi object oriented tool. WebDriver is a purely object oriented tool
Dynamic Finders
(for locating web elements on a webpage)
Selenium IDE doesn't support dynamic finders Selenium RC doesn't support dynamic finders. WebDriver supports dynamic finders
Handling Alerts, Navigations, Dropdowns Selenium IDE doesn't explicitly provides aids to handle alerts, navigations, dropdowns Selenium RC doesn't explicitly provides aids to handle alerts, navigations, dropdowns. WebDriver offers a wide range of utilities and classes that helps in handling alerts, navigations, and dropdowns efficiently and effectively.
WAP (iPhone/Android) Testing Selenium IDE doesn't support testing of iPhone/Andriod applications Selenium RC doesn't support testing of iPhone/Android applications. WebDriver is designed in a way to efficiently support testing of iPhone/Android applications. The tool comes with a large range of drivers for WAP based testing.
For example, AndroidDriver, iPhoneDriver
Listener Support Selenium IDE doesn't support listeners Selenium RC doesn't support listeners. WebDriver supports the implementation of Listeners
Speed Selenium IDE is fast as it is plugged in with the web-browser that launches the test. Thus, the IDE and browser communicates directly Selenium RC is slower than WebDriver as it doesn't communicates directly with the browser; rather it sends selenese commands over to Selenium Core which in turn communicates with the browser. WebDriver communicates directly with the web browsers. Thus making it much faster.

Q #8) When should I use Selenium IDE?

Selenium IDE is the simplest and easiest of all the tools within the Selenium Package. Its record and playback feature makes it exceptionally easy to learn with minimal acquaintances to any programming language. Selenium IDE is an ideal tool for a naïve user.

Q #9) What is Selenese?

Selenese is the language which is used to write test scripts in Selenium IDE.

Q #10) What are the different types of locators in Selenium?

The locator can be termed as an address that identifies a web element uniquely within the webpage. Thus, to identify web elements accurately and precisely we have different types of locators in Selenium:

  • ID
  • ClassName
  • Name
  • TagName
  • LinkText
  • PartialLinkText
  • Xpath
  • CSS Selector
  • DOM

Related Solutions

Sets of questions and answers for a job interview!
Sets of questions and answers for a job interview!
I have to do this "interview", I just need truthful/made-up answers to these questions (Include the...
I have to do this "interview", I just need truthful/made-up answers to these questions (Include the position you hold and why someone in that position can give a better feel for how someone might use accounting someday) 1. I would like to understand if and how financial reporting affects you and your work. Can you give me any examples of how accounting affects your day-to-day responsibilities or decisions? 2. What do other managers and leaders in your company use your...
I have to do this "interview", I just need truthful/made-up answers to these questions (Include the...
I have to do this "interview", I just need truthful/made-up answers to these questions (Include the position you hold and why someone in that position can give a better feel for how someone might use accounting someday) 1.      I would like to understand if and how financial reporting affects you and your work. Can you give me any examples of how accounting affects your day-to-day responsibilities or decisions? 2.      What do other managers and leaders in your company use your...
I need two situational interview questions for a clinical coding specialist. I need two behavioral interview...
I need two situational interview questions for a clinical coding specialist. I need two behavioral interview questions for a clinical coding specialist. I need two job knowledge interview questions for a clinical coding specialist. I need two work requirement interview questions for a clinical coding specialist.  
//Complete the incomplete methods in the java code //You will need to create a driver to...
//Complete the incomplete methods in the java code //You will need to create a driver to test this. public class ManagedArray { private int[] managedIntegerArray; //this is the array that we are managing private int maximumSize; //this will hold the size of the array private int currentSize = 0; //this will keep track of what positions in the array have been used private final int DEFAULT_SIZE = 10; //the default size of the array public ManagedArray()//default constructor initializes array to...
in java we need to order a list , if we create a program in java...
in java we need to order a list , if we create a program in java what  are the possible ways of telling your program how to move the numbers in the list to make it sorted, where each way provides the required result. list the name of sorting with short explanation
Draft a list of Structured interview questions based on a clinical trail as a topic. This...
Draft a list of Structured interview questions based on a clinical trail as a topic. This is towards understanding for structured vs. unstructured interview types. Draft about 10 questions for a structure interview please. The questions should be things that an interviewer to ask a participant (who will be a patient that want to be a participant in a clinical trail).
Draft a list of Unstructured interview questions based on a clinical trail as a topic. This...
Draft a list of Unstructured interview questions based on a clinical trail as a topic. This is towards understanding for structured vs. unstructured interview types. Draft about 10 questions for a Unstructured interview please. The questions should be things that an interviewer to ask a participant (who will be a patient that want to be a participant in a clinical trail).
1. Prepare a list of 10 interview questions to select a candidate for the position “marketing...
1. Prepare a list of 10 interview questions to select a candidate for the position “marketing manager”. Please ensure that two behavioural, two situational, two job-knowledge, and two worker-requirements questions are included in this list of ten questions. 2. "A well-thought-out orientation program is essential for all new employees, whether they have experience or not." Explain why you agree or disagree with this statement. (word requirement: minimum 200 words) 3. Explain how you would conduct a job analysis. (word requirement:...
Htmp (please   I need all answers) QUESTION 1 is a sketch or blueprint of a web...
Htmp (please   I need all answers) QUESTION 1 is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer. O hierarchy O wireframe O drawing O site map QUESTION 2 of a color is darker than the original color and is created by mixing the color with black O tint O shade O tone O complement QUESTION 3 A page layour...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT