To leverage automation testing for different types of mobile devices, the different kinds of mobile platforms like iOS, Android, etc. Setup Selenium Grid For Parallel Execution In Different Browsersĭesired Capabilities in Appium is useful in the case of mobile application automation, where we have to execute test automation on different browser properties and device properties, which we can set using Desired Capabilities class. Chrome, IE, Firefox, Edge) platform name (Ex. To declare Desired Capabilities in Selenium automation testing using Grid, we can use the setCapability method from the DesiredCapabilities class to set the different types of capabilities of the browser (Ex. While working with Selenium automation testing, we always have different requirements while execution specifically about which browser to execute, which operating system and version to use for test execution, this where Desired Capabilities helps us a lot on Selenium Grid. You can refer to the github library for the Desired Capabilities for all the detailed methods and etc. We use these capabilities as key-value pairs to set them for browsers. For example, the name of the browser, the version of the browser, etc. So using different capabilities from Desired Capabilities class we can set the properties of browsers. It helps Selenium WebDriver set the properties for the browsers. What Are Desired Capabilities?ĭesired Capabilities class is a component of the .DesiredCapabilities package. I will show you what they are, how they are used for Selenium automation testing and Appium testing with examples. I will help you become familiar with the Desired Capabilities in Selenium testing and Desired Capabilities for Appium too. To declare these environments in our Selenium automation testing script, we make use of the Desired Capabilities in Selenium testing or Appium testing and this is exactly what we will be discussing in this article. These environments can be mobile devices, mobile browsers, desktop devices, desktop browsers, screen resolutions, etc. When we try to automate our test scripts through Selenium automation testing, we need to consider these combinations to declare a specific test environment over which our website or web application should render seamlessly. to perform automated cross browser testing of a web application. Desired Capabilities is a class used to declare a set of basic requirements such as combinations of browsers, operating systems, browser versions, etc.