html5-img
1 / 16

Best interview questions and answers for Selenium

Selenium is a portable software testing framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese) to write tests in a number of popular programming languages, including Java, C#, Groovy, Perl, PHP, Python and Ruby. The tests can then be run against most modern web browsers. Selenium deploys on Windows, Linux, and Macintosh platforms.

Download Presentation

Best interview questions and answers for Selenium

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Best Interview Questions and answers for Selenium By Bigclasses

  2. 1.Name the different types of drivers available in Selenium WebDriver Firefox Driver Internet Explorer Driver Safari Driver Opera Driver Android Driver iPhone Driver HTMUnit Driver

  3. 2. What is the type of test can Selenium perform? The Selenium can perform different tests such as functional test, regression test, and load test of web-based application. The automation tool present is implemented for post validation with integration tools like Jenkins, Hudson, QuickBuild, and more.

  4. 3. Mention the three types of Selenium tests? There are three types of selenium tests, and they are a functional test in which the test cases related to software specifications. The other is the regression test in which the tests will search for errors, any regressions in the functional and non-functional area of the code. And lastly, the load test in which the test monitors the response of the device or system after putting a load on it. This test is carried out to study the behavior of the systems.

  5. 4. How do you close the browser session in Selenium Webdriver? There are only two ways to close the browser and they are driver.close that closes the browser window on which the focus is set. The second is the driver.the quilt that calls the driver.dispose of a method that closes all the browser windows and ends the WebDriver session.

  6. 5. Mention the four methods uses to alert interface? The four methods used to alert interface are void dismiss(), void accept(), string getText(), and void sendKeys (String stringToSend). In the void dismiss() the accept () method clicks on the cancel button as and when the pop-up window appears. In the void accept(), the accept() method click on the Ok button as soon as the pop-up window appears.

  7. The string getText() method returns the text displayed on the alert box. And the void sendkeys(String stringToSend), the sendkeys() method enters the specific string pattern in then alerts the box. 6. Name some of the junit annotations? There are many junit annotations in the Selenium are as given below @test this annotation will let the system understand that the method annotated as @Test is a test method. @Before is the method which is annotated @before will let you know that the method used will be executed every time before each test method.

  8. @After lets the system know that this method is executed every time after each method. @BeforeClasses is the method where it will let you know that this method is executed before any test methods. @AfterClass is the method which will let the system know that the method will be executed before the test. And lastly, @ignore will let the system know that the method will not be executed.

  9. 7. When can you use findElement() and findElements()? The findElement() will find the element in the page that will match the specified locator value. The findElements() will find all the elements in the current web page that will match the specified locator value. 8. Mention the benefits of Automation testing? The Automation testing has various benefits and they are as given below

  10. They will support the execution of repeated test cases, they will help in testing a large test matrix, it will enable parallel execution, and also, improves accuracy and reduced human generated error. It also saves time and money. 9.Mention the testing types supported by Selenium? The testing types are functional testing and regression testing.

  11. 10. What is Module Based Testing Framework and Library Architecture Testing Framework? The Mobile Based Testing Framework is the framework that divides the entire application under test into no. of the logical and isolated module. We can create a separate and independent test script. All these test scripts taken will build a larger script together.

  12. The Library Architecture Testing Framework is the basic fundamental of the framework. This will determine the common steps and hence, group them together into functions, and these will under a library. This will also, call those functions in the test scripts.

  13. To know more details on Selenium click herehttps://bigclasses.com/selenium-online-training.html and call us:-  +91 800 811 4040For regular Updates on Selenium please like our Facebook page:- Facebook:-https://www.facebook.com/bigclasses/Twitter:-https://twitter.com/bigclassesLinkedIn:- https://www.linkedin.com/company/bigclassesGoogle+: https://plus.google.com/+BigclassesonlineSelenium Course Page:- https://bigclasses.com/selenium-online-training.html Contact us: - India +91 800 811 4040                                              USA +1 732 325 1626Email us at: - info@bigclasses.com

More Related