Selenium Interview Question-9

) Mention what are the types of Listeners in TestNG?
The types of Listeners in TestNG are,
·         IAnnotationTransformer
·         IAnnotationTransformer2
·         IConfigurable
·         IConfigurationListener
·         IExecutionListener
·         IHookable
·         IInvokedMethodListener
·         IInvokedMethodListener2
·         IMethodInterceptor
·         IReporter
·         ISuiteListener
·         ITestListener
96) Mention what is desired capability? How is it useful in terms of Selenium?
The desired capability is a series of key/value pairs that stores the browser properties like browser name, browser version, the path of the browser driver in the system, etc. to determine the behavior of the browser at run time.
For Selenium,
·         It can be used to configure the driver instance of Selenium WebDriver.
·         When you want to run the test cases on a different browser with different operating systems and versions.
97) For Database Testing in Selenium Webdriver what API is required?
For Database Testing in Selenium Webdriver, you need JDBC (Java Database Connectivity) API. It allows you to execute SQL statements.
98) Mention when to use AutoIT?
Selenium is designed to automate web-based applications on different browsers. But to handle window GUI and non-HTML popups in the application you need AutoIT. know more about How to use AutoIT with Selenium
99) Mention why do you need Session Handling while working with Selenium?
While working with Selenium, you need Session Handling. This is because, during test execution, the Selenium WebDriver has to interact with the browser all the time to execute given commands. At the time of execution, it is also possible that, before current execution completes, someone else starts execution of another script, in the same machine and in the same type of browser. So to avoid such situation you need Session Handling.
100) Mention what are the advantages of Using Git Hub For Selenium?
The advantages of Using Git Hub for Selenium are
·         Multiple people when they work on the same project they can update project details and inform other team members simultaneously.
·         Jenkins can help you to build the project from the remote repository regularly. This helps you to keep track of failed builds.


Comments

Popular posts from this blog

Handling Dynamic Web Tables Using Selenium WebDriver

Verify Specific Position of an Element

Read it out for TESTNG before going for an iterview