What is desired capability? How is it useful in terms of selenium?



What is desired capability? How is it useful in terms of selenium?..

Answer / 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

More Selenium Interview Questions

How do you read test data from excels?

1 Answers  


How can we get text from a Web Part?

2 Answers  


We do create a reference variable ‘driver’ of type webdriver

1 Answers  


How can we check if an element is enabled for interaction on a web page?

1 Answers  


Explain the difference between close and quit command?

1 Answers  


What are some advantages of selenium grid?

1 Answers  


How do you add check points or verification points in selenium?

1 Answers  


How to execute a single line command from selenium ide?

1 Answers  


What kind of mouse actions can be performed in selenium?

1 Answers  


How to verify if the checkbox/radio is checked or not?

1 Answers  


Explain xpath.

1 Answers  


How does selenium score over other automation tools like hp qtp, ibm rft, and testcomplete?

1 Answers  


Categories