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.
Internet Explorer Driver
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.
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.
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.
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.
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.
@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.
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
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.
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.
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.
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: - email@example.com