Monday, 5 June 2017

Selenium Interview Questions and Answers

1) How to get typed text from a textbox?
Use get Attribute (“value”) method by passing arg as value.
String typedText = driver.findElement (By.xpath (“xpath of box”)).get Attribute (“value”));
2) What are the different exceptions you got when working with WebDriver?
ElementNotVisibleException, ElementNotSelectableException, NoAlertPresentException, NoSuchAttributeException, NoSuchWindowException, TimeoutException, WebDriverException etc.
3) What are the languages supported by WebDriver?
Python, Ruby, C# and Java are all supported directly by the development team. There are also WebDriver implementations for PHP and Perl.
4) How do you clear the contents of a textbox in selenium?
Use clear () method.
driver.findElement (By.xpath (“xpath of box”)).clear ();
5) What is a Framework?
A framework is set of automation guidelines which help in
Maintaining consistency of Testing, Improves test structuring, Minimum usage of code, Less Maintenance of code, Improve reusability, Non Technical testers can be involved in code, Training period of using the tool can be reduced, Involves Data wherever appropriate.
There are five types of framework used in software automation testing:
  1. Data Driven Automation Framework
  2. Method Driven Automation Framework
  3. Modular Automation Framework
  4. Keyword Driven Automation Framework
  5. Hybrid Automation Framework, it’s basically combination of different frameworks. (1+2+3).
6) What are the prerequisites to run selenium WebDriver?
JDK, Eclipse, WebDriver (selenium standalone jar file), browser, application to be tested.
7) What are the advantages of selenium WebDriver?
a) It supports with most of the browsers like Firefox, IE, Chrome, Safari, Opera etc.
b) It supports with most of the language like Java, Python, Ruby, C# etc.
b) Doesn’t require to start server before executing the test script.
c) It has actual core API which has binding in a range of languages.
d) It supports of moving mouse cursors.
e) It supports to test iphone/Android applications.
8) What is WebDriverBackedSelenium?
WebDriverBackedSelenium is a kind of class name where we can create an object for it as below:
Selenium WebDriver= new WebDriverBackedSelenium (WebDriver object name, “URL path of website”)
The main use of this is when we want to write code using both WebDriver and Selenium RC , we must use above created object to use selenium commands.
9) How to invoke an application in WebDriver?
driver. get (“url”); or driver. Navigate ().to (“url”);
10) What is Selenium Grid?
Selenium Grid allows you to run your tests on different machines against different browsers in parallel. That is, running multiple tests at the same time against different machines, different browsers and operating systems. Essentially, Selenium Grid support distributed test execution. It allows for running your tests in a distributed test execution environment.

Selenium Training in Chennai | Selenium Training Institute in Chennai | Selenium Training Course in Chennai | Best Selenium Training in Chennai | Selenium Automation Testing Tool Training in Chennai | No.1 Selenium Automation Training in Chennai | Selenium Training

6 comments:

  1. Thank you for sharing the valuable question and answers.

    Are you looking for big data course online here 361 online provide big data training in chennai

    ReplyDelete
  2. Thanks for sharing such an informative blog. I have read your blog and I gathered some needful information from your post. Keep update your blog. Awaiting for your next update.
    Selenium Training in chennai | Selenium Training in annanagar | Selenium Training in omr | Selenium Training in porur | Selenium Training in tambaram | Selenium Training in velachery


    ReplyDelete
  3. Great post! A MongoDB course is a great way to understand NoSQL databases, especially for managing flexible and scalable data structures in modern applications.mongodb course

    ReplyDelete
  4. Informative post! MongoDB online course provides a flexible and comprehensive way to learn NoSQL database concepts, development, and administration. With interactive lessons and hands-on labs, learners can build practical skills in CRUD operations, data modeling, indexing, aggregation pipeline, replication, sharding, security, backup, recovery, and performance optimization for scalable modern applications.mongodb online course

    ReplyDelete
  5. preparing for industry-recognized credentials can choose ServiceNow admin certification training to strengthen their knowledge and boost certification readiness.


    ReplyDelete