Selenium IDE, Selenium RC, Selenium WebDriver and Selenium Grid. What are the different components / tools in Selenium ?Īnswer: Selenium comprises of 4 different components / tools. Where as the Desktop Applications like Paint, Skype, MS Office etc. 1) What is TestNG TestNG stands for 'Testing Next Generation'.It is an automation testing framework used for java programming language developed by Credric beust, and it comes after the inspiration from the JUnit framework. Selenium can only automate Web Applications.Įxamples: Web Applications like, etc can be automated by Selenium. A list of top frequently asked TestNG Interview Questions and answers are given below. ![]() Can Selenium automate Desktop Applications ?Īnswer: No. Click here to find out more on these WebDriver exceptions.ĥ. The list of WebDriver related Exceptions that may commonly arise during Selenium programs execution are: NoSuchElementException, ElementNotVisibleException, NoSuchFrameException, NoAlertPresentException, NoSuchWindowException, SessionNotFoundException and StaleElementReferenceException. Similarly, while running the Selenium programs, different types of Exceptions related to WebDriver may arise. What are the different WebDriver exceptions, you have faced while working with Selenium Projects ?Īnswer: Exception is a problem which occurs during the execution of the program and there by stops the program from further execution. Click here to read how Selenium WebDriver uses getAttribute() method for reading a tool tip from a web page.Ĥ. Selenium WebDriver can read the tool tip text using getAttribute() method. How to read tool tip text using Selenium WebDriver ?Īnswer: Tool Tip is a text that will be displayed when we hover our mouse cursor over the text or web element on any web page. The Classes which implement the WebDriver interface in Selenium are FirefoxDriver, ChromeDriver, InternetExplorerDriver, OperaDriver, SafariDriver, RemoteWebDriver, EdgeDriver and EventFiringWebDriver Classes.Įxample: In the statement WebDriver driver = new FirefoxDriver(), WebDriver is an Interface and FirefoxDriver is one of the Classes which is implementing WebDriver Interface.ģ. What are the different Classes which implement WebDriver ?Īnswer: First of all WebDriver is an Interface and there are different classes which implement this Interface in Selenium. Unlike Explicit Wait, Implicit Wait once set will be applicable to all the web elements and hence the specified wait time will be applicable for all the web elements.Ģ. Its generally not set for one or two web elements, instead it is once set will be applicable for all elements. ![]() Where as Implicit Wait will make the WebDriver wait for all web elements for the same specified time. Using Explicit Wait, we can make the WebDriver wait for web element 'a' for 5 seconds and another web element 'b' for 10 seconds. What is the difference between Implicit Wait and Explicit Wait ?Īnswer: Explicit Wait will make the WebDriver wait for a specific web element for the specified time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |