Selenium interview Q/A Part-1 – User friendly Tech help

n

1.What is the meaning of Page object Model pattern?

n

2.What is the difference between data/keyword driven frameworks?

n

3.Difference between TestNG and Junit?

n

4.Major components of OOPS?

n

5.What are the new features in Java – 8?

n

6.Key components of white box testing?

n

7.Meaning of headless browser?

n

8.What is the advantages and disadvantages of headless browser testing?

n

9.Difference between implicit and explicit wait Selenium?

n

10.Explain any of the challenging scenario while working with Selenium webdriver

n

Hints:-

n

1.Page object model is a design pattern which separates “What we need to test” and “How we are going to test it”.This provides readable, easy to maintain and reduces duplicate code. Corresponding classes are created for each page, with UI webelements properties and methods.

n

2.Data drives the test cases, example testing gmail login with 10 set of username.Keyword driven, english like keywords are created which defines the actions that user need to perform on application. Example open browser, login to gmail.

n

4.

n

    n

  • Object – entity with state and behaviour example laptop, pen
  • n

  • Class – blueprint for object, call it collections of objects with members(state) and methods(behaviour)
  • n

  • Inheritance – child(sub class) inherits from parent(super class), provides code resuablity.Class A extends Class B.
  • n

  • Polymorphism – many form of the same function Types: method overloading+ method overriding.
  • n

  • Abstraction – hiding the implementaiton details – interface or abstarct class
  • n

  • Encapsulation – objects encapsulate their state and hide it from the outside using private, protected, public and default.
  • n

n

5.Date/Time API improvements, default method in interface, lambda expressions, javascript engine.

n

6.Unit and Integration testing. Diving deep into code to perform testing.

n

7.Browser without having any UI. Drivers like HTMLUnit, PhantomJs

n

8.Advantage – Faster,platform independent.Disadvantages:-Difficult to pin point errors say on page loading, ajax calls.

n


More Questions??

Was this article helpful?
YesNo

Similar Posts