adspace
What is desired capability? How is it useful in terms of selenium?
Answer Posted / Yogeshwar Sharma
Desired Capabilities are a set of keys and values used to configure the web browser when launching a new session with Selenium WebDriver. These capabilities define how the driver should interact with the browser, allowing you to customize its behavior according to your test requirements.nnFor example: `DesiredCapabilities caps = DesiredCapabilities.chrome();` sets Chrome as the desired browser for testing.nnUsing desired capabilities is useful because it allows you to control various aspects of the browser such as the browser version, window size, and timeouts.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers