Desired Capabilities and Chrome Options in Selenium WebDriver
H Y R Tutorials
@hyrtutorialsAbout
Welcome to my channel H Y R Tutorials. If you are looking for learning something useful (related to automation testing) with some good explanation, then you are in the right place. In this channel I'm going to share the knowledge on various programming languages, technologies and tools, so please stay tuned to this. 🔗 YouTube - https://www.youtube.com/hyrtutorials 🔗 Website - https://www.hyrtutorials.com 🔗 Facebook - https://www.facebook.com/hyrtutorials 🔗 Twitter - https://twitter.com/hyrtutorials 🔗 Instagram - https://www.instagram.com/hyrtutorials 🔗 Telegram - https://t.me/hyrtutorials 🔗 LinkedIn - https://www.linkedin.com/company/hyrtutorials Kindly share this channel and website with your friends and help them as well. 🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
Latest Posts
Video Description
In this video, I have explained about Desired Capabilities and Chrome Options in Selenium WebDriver. Selenium WebDriver is an open-source tool for automated testing of web apps across many browsers. DesiredCapabilities are a set of key-value pairs encoded as a JSON object. It helps QAs define basic test requirements such as operating systems, browser combinations, browser versions, etc. within Selenium test scripts. The DesiredCapabilities Class has multiple methods that let QAs specify the required properties regarding the desired test environments. Not all server implementations will support every WebDriver feature. Therefore, the client and server should use JSON objects with the properties listed below when describing which features the user requests that session support. If a session cannot support a capability that is requested in the desired capabilities, no error is thrown; a read-only capabilities object is returned that indicates the capabilities the session actually supports. Below three are the capabilities used by the selenium server for browser selection: ✔ browserName ✔ version ✔ platform There are some read-only and red-write capabilities available in WebDriver, Apart from these capabilities, browser-specific capabilities are also available. Chrome-Specific: The WebDriver language APIs provides ways to pass capabilities to ChromeDriver. The exact mechanism differs from the language, but most languages use one or both of the following mechanisms: ✔ Use the ChromeOptions class. This is supported by Java, Python, etc. ✔ Use the DesiredCapabilities class. This is supported by Python, Ruby, etc. While it is also available in Java, its usage in Java is deprecated. You can create an instance of ChromeOptions, which has convenient methods for setting ChromeDriver-specific capabilities. You can then pass the ChromeOptions object into the ChromeDriver constructor Since Selenium version 3.6.0, the ChromeOptions class in Java also implements the Capabilities interface, allowing you to specify other WebDriver capabilities not specific to ChromeDriver. To use DesiredCapabilities, you need to know the name of the capability and the type of value it takes. Syntax: -- Start Chrome maximized -- ChromeOptions options = new ChromeOptions(); options.addArguments("start-maximized"); ChromeDriver driver = new ChromeDriver(options); IE specific: ✔ ignoreProtectedModeSettings ✔ ignoreZoomSetting ✔ initialBrowserUrl etc.. To get the list of desired capabilities, visit the below link: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities The following points can be covered in this video: ✔ desired capabilities in selenium webdriver for chrome ✔ desired capabilities in selenium webdriver for chrome java ✔ desired capabilities in selenium ✔ desired capabilities in selenium webdriver ✔ desired capabilities in selenium webdriver for ie 11 ============================================== ************** Checkout my other playlists ************** ============================================== Java Programming videos playlist:👇 🔗 https://bit.ly/3keRJGa Selenium WebDriver with Java videos playlist:👇 🔗 https://bit.ly/2FyKvxj Selenium interview questions videos playlist:👇 🔗 https://bit.ly/3matUB3 Windows automation with FlaUI videos playlist:👇 🔗 https://bit.ly/33CG4dB CSS Selectors videos playlist:👇 🔗 https://bit.ly/2Rn0IbD XPath videos playlist:👇 🔗 https://bit.ly/2RlLdkw Javascript Executor videos playlist:👇 🔗 https://bit.ly/2FhNXwS Apache POI videos playlist:👇 🔗 https://bit.ly/2RrngrH Maven videos playlist:👇 🔗 https://bit.ly/2DYfYZE How to fix Eclipse errors:👇 🔗 https://bit.ly/3ipvNYf ============================================== ============================================== Connect us @ 🔗 Website - www.hyrtutorials.com 🔗 Facebook - www.facebook.com/HYRTutorials 🔗 LinkedIn - www.linkedin.com/company/hyrtutorials 🔗 Twitter - www.twitter.com/Hyrtutorials ============================================== ============================================== 🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel. #selenium #desiredCapabilities #chromeOptions #hyrtutorials #webAutomation hyr tutorials,h y r tutorials,hyr,selenium webdriver tutorial,selenium tutorial,selenium tutorial for beginners,selenium training,selenium testing tutorial,automation testing tutorial for beginners,automation testing tools,selenium online training,selenium webdriver training,desired capabilities,capabilities,ChromeOptions,InternetExplorerOptions,AcceptInsecureCerts,start-maximized,incognito,selenium webdriver,
Upgrade to iPhone 13 Today
AI-recommended products based on this video

Spigen Case for iPhone 15, iPhone 14, and iPhone 13, Ultra Hybrid MagFit Designed for Apple iPhone 15/14/13 - Crystal Clear

JETech Silicone Case for iPhone 13 6.1-Inch, Silky-Soft Touch Full-Body Protective Phone Case, Shockproof Cover with Microfiber Lining (Black)
![[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard](https://m.media-amazon.com/images/I/714PYxCQxbL._AC_UL960_FMwebp_QL65_.jpg)
[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard

SURPHY Silicone Case Compatible with iPhone 13 Case 6.1 inch (2021), with Camera Protection Liquid Silicone Soft Gel Rubber Phone Case Cover with Microfiber Lining (Pink) Global Recycled Standard
![VANMASS [85+LBS Strongest Suction & Clip] 2025 Upgrade Car Phone Holder [Patent & Safety Certs] Cell Phone Mount Truck Stand for Dashboard Windshield Vent for iPhone 16 Pro Max 15 14 13 12 Samsung](https://m.media-amazon.com/images/I/71bHSP1cRkL._AC_UL960_FMwebp_QL65_.jpg)
VANMASS [85+LBS Strongest Suction & Clip] 2025 Upgrade Car Phone Holder [Patent & Safety Certs] Cell Phone Mount Truck Stand for Dashboard Windshield Vent for iPhone 16 Pro Max 15 14 13 12 Samsung
![iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad](https://m.media-amazon.com/images/I/517jTqwo1nL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger Fast Charging [Apple MFi Certified] USB C to Lightning Cable 6FT USBC to Lightning Cable Nylon Braided Type C Cord for iPhone 14 13 12 11 Pro Max XR XS X 8 7 6 Plus SE, iPad
![iPhone Charger [Apple MFi Certified] 3FT, 3Pack USB A to Lightning Cable Braided Fast Charging Apple Cord Compatible with iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad/iPod/AirPods](https://m.media-amazon.com/images/I/71xZOlUELbL._AC_UL960_FMwebp_QL65_.jpg)
iPhone Charger [Apple MFi Certified] 3FT, 3Pack USB A to Lightning Cable Braided Fast Charging Apple Cord Compatible with iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad/iPod/AirPods

2Pack 10ft iPhone Charger 90 Degree Lightning Cable Right Angle Long USB Charging Cord Compatible with Apple iPhone 14 13 12 11 Pro Max XS XR X 8 7 6 5 Plus iPad iPod

Apple AirPods Pro 2 Wireless Earbuds, Bluetooth Headphones, Active Noise Cancellation, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods Global Recycled Standard

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods (Blue) Global Recycled Standard

Wireless Charger for iPhone- 3 in 1 Charging Station for iPhone 16/15/14/13/12/Pro Max/Pro/Mini/Plus, Apple Watch 10/9/8/7/SE/6/5/4/3/2/1/Ultra2/Ultra, AirPods pro/2/3/4

SURPHY Silicone Case Compatible with iPhone 13 Case 6.1 inch (2021), with Camera Protection Liquid Silicone Soft Gel Rubber Phone Case Cover with Microfiber Lining (Pink) Global Recycled Standard

JETech Silicone Case for iPhone 13 6.1-Inch, Silky-Soft Touch Full-Body Protective Phone Case, Shockproof Cover with Microfiber Lining (Black)

GuaGua Case for iPhone 13 6.1 Inch Liquid Silicone Soft Gel Rubber Slim Thin Microfiber Lining Cushion Texture Cover Shockproof Protective Anti-Scratch Phone Case for iPhone 13 2021 Yellow

JETech Case for iPhone 13 Pro 6.1-Inch, Non-Yellowing Shockproof Phone Bumper Cover, Anti-Scratch Clear Back (Clear)
![Spigen Spigen Tempered Glass Screen Protector [GlasTR EZ FIT] designed for Nintendo Switch 2 (2025) - 2 Pack](https://m.media-amazon.com/images/I/61L0hIGSbYL._AC_UL1500_FMwebp_QL65_.jpg)
Spigen Spigen Tempered Glass Screen Protector [GlasTR EZ FIT] designed for Nintendo Switch 2 (2025) - 2 Pack
![[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard](https://m.media-amazon.com/images/I/714PYxCQxbL._AC_UL960_FMwebp_QL65_.jpg)
[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard

iPhone Charger Cord Lightning Cable (Apple MFi Certified) 6/6/10ft 3 Pack iPhone Cable Fast Charging Long Apple Charger Cable for iPhone 13 13 Pro 12 Pro 11 SE Max XS XR X, iPad Mini Air, iPod, AirPod

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods Global Recycled Standard

3 in 1 Charging Station for iPhone, Wireless Charger for iPhone 16 15 14 13 12 11 X Pro Max & Apple Watch - Charging Stand Dock for AirPods (Blue) Global Recycled Standard

JARGOU 3 in 1 Charging Station for Apple Wireless Charger for iPhone 16 15 14 13 12 11 X 8 & for Apple Watch Charger Wireless Charging Station for Multiple Devices for AirPods 4 3 Pro

soundcore P31i by Anker, Real-Time Adaptive Noise Cancelling, Hi-Res Sound, Translation Earbuds, 50H Playtime, Wireless Earbuds, Bluetooth Earphones, Spatial Audio, Fast Charging, IP55 ClimatePartner certified
![[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard](https://m.media-amazon.com/images/I/714PYxCQxbL._AC_UL960_FMwebp_QL65_.jpg)
[ 3+3 Pack] LK 3Pack iPhone 13 Screen Protector 6.1-inch with 3Pack Camera Lens Protector, Anti-Scratch Easy-Installation,9H Hardness, HD Tempered Glass Film Global Recycled Standard

SURPHY Silicone Case Compatible with iPhone 13 Case 6.1 inch (2021), with Camera Protection Liquid Silicone Soft Gel Rubber Phone Case Cover with Microfiber Lining (Pink) Global Recycled Standard

JETech Silicone Case for iPhone 13 6.1-Inch, Silky-Soft Touch Full-Body Protective Phone Case, Shockproof Cover with Microfiber Lining (Black)

GuaGua Case for iPhone 13 6.1 Inch Liquid Silicone Soft Gel Rubber Slim Thin Microfiber Lining Cushion Texture Cover Shockproof Protective Anti-Scratch Phone Case for iPhone 13 2021 Yellow




















