Mobile Testing Drivers supported by the WebDriver are: AndroidDriver, IphoneDriver, OperaMobileDriver.Ģ3) Explain the fundamental difference between XPath and CSS selector.
We should create an instance of a driver of a particular browser:Ģ2) What the WebDriver supported Mobile Testing Drivers do you know? There are also PHP and Perl WebDriver implementations.Ģ1) How can we launch different browsers in Selenium WebDriver? Java, C#, Python, and Ruby, are all supported directly by the development team. in different locators.Ģ0) Give an example of the languages supported by WebDriver. From an automation perspective, Firebug is used specifically for inspecting web-elements in order to use their attributes like id, class, name etc.
Example of Relative XPath - What is the difference between single slash (/) and a double slash ( //) in XPath?Ī single slash (/) is used for creating XPaths with absolute paths beginning from the root node.ĭouble slash (//) is used for creating relative XPath to start selection from anywhere within the root nodeġ9) How could the web element attributes be inspected in order to use them in different locators?įirebug is a Firefox plugin that provides various development tools for debugging applications. Relative XPath means that user can start from the middle of the HTML DOM structure and no need to write long XPath. html/body/div/div/div/div/div/div/div/input - Absolute XPath example. XPath gets failed if there are any changes made in the path of the element. XPath is a language that describes a way to locate and process items in Extensible Markup Language (XML) documents by using an addressing syntax based on a path through the document's logical structure or hierarchy.Ībsolute XPath is the direct way to find the element. Unlike to "assert", "verify" will not stop the test case execution if the test case fail. The types of assertion are “assert”, “verify” and “waifFor”.ġ4) Explain the difference between assert and verify commands?īoth of them check if the given condition is true or false. It verifies that the application state conforms to the expectation.
The different types of locators in Selenium are ID, ClassName, Name, TagName, LinkText, PartialLinkText, XPath, CSS Selector, DOM.ġ2) What automation tools could be used for post-release validation with continuous integration?Īutomation tools could be used for post-release validation with continuous integration: CruiseCont, Hudson, Jenkins, Quick Build.ġ3) Explain the meaning of assertion in Selenium and what are the types of assertion?Īssertion is used as a verification point. Selenese is the language which is used to write test scripts in Selenium IDE.ġ0) What kinds of test types are supported by Selenium?ġ1) What are the different types of locators in Selenium? Scripts may be automatically recorded and edited manually providing auto-completion support and the ability to move commands around quickly.
Selenium IDE is a plug-in used to record and replay tests in Firefox browser. Programming language knowledge is required to create robust scripts in Selenium WebDriver User should use third-party tools like TestNG or jUnit to write test scripts and generate reports
Mobile applications cannot be tested using Seleniumĭesktop applications cannot be tested using SeleniumĬaptcha and Bar code readers cannot be tested using Selenium
Selenium supports only web based applications testing. The list of driver classes could be used for the browser automation.ħ) Does the Selenium have any limitations? Grid: you can distribute tests on multiple machines so that test can be run parallel which helps cutting down the time required for running test suites in the browser.Ħ) How many types of Webdriver APIs are available in Selenium? It provides the APIs for a variety of languages like Java. It is a tool for recording and playing back. Selenium IDE (Integrated Development Environment). Selenium is a suite of tools for automated web testing. Regular and fresh repository developments Huge amount user base and helping communitiesĪutomation scripts creating ability for non-programmers as well as for programmers
Multiple programming languages (Java, C#, Ruby, Python, Pearl etc.) supportĬompatibility with the main platform (Windows, Mac OS, Linux etc.) You don't need to spend any licensing cost to use it.Ĭross Browser compatibility (Firefox, Chrome, Internet Explorer, Safari etc.) 4) What are the main advantages of Selenium?