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


Please Help Members By Posting Answers For Below Questions

what will be the first salary and what will be the hike in the salary?

929


Do you know how to locate a link using its text in selenium?

985


What’s selenese?

920


Have you created any framework?

1038


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197