# Desired\_capabilities has been deprecated and removed

**URL:** <https://forum.robotframework.org/t/desired-capabilities-has-been-deprecated-and-removed/7478>\
**Category:** SeleniumLibrary\
**Created:** [24 June 2024 20:32 UTC](https://forum.robotframework.org/t/desired-capabilities-has-been-deprecated-and-removed/7478 "2024-06-24T20:32:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grarun11](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@grarun11](https://forum.robotframework.org/u/grarun11)\
**Post date:** [24 June 2024 20:32 UTC](https://forum.robotframework.org/t/desired-capabilities-has-been-deprecated-and-removed/7478/1 "2024-06-24T20:32:03Z")

</div>

I was getting this error after upgrading selenium and other depended libraries. I updated the browser code but facing some issues. If I run chrome and its running in Firefox and also getting some errors. Please guide me what needs to be change in below code. Currently getting TypeError: WebDriver. **init** () got an unexpected keyword argument ‘browser\_profile’

${chrome options} = Evaluate sys.modules[‘selenium.webdriver’].ChromeOptions() sys  
&{bstack\_options} Create Dictionary os=Windows osVersion=10 browserVersion=124  
${remoteUrl} Set Variable #BrowserStack URL goes here  
&{desiredCapabilities} Create Dictionary browserName=Chrome selenium\_version=4.1.0 use\_w3c=false options.set\_capability=${bstack\_options} keep\_alive=true  
Open Browser remote\_url=${remoteUrl} desired\_capabilities=${desiredCapabilities} options=${chrome options}

---

<div class="post-metadata">

**Author:** ![grarun11](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@grarun11](https://forum.robotframework.org/u/grarun11)\
**Post date:** [25 June 2024 21:13 UTC](https://forum.robotframework.org/t/desired-capabilities-has-been-deprecated-and-removed/7478/2 "2024-06-25T21:13:05Z")

</div>

Sorry the error that I am getting is " Currently getting “desired\_capabilities has been deprecated and removed. Please use options to configure browsers as per documentation.”

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [27 June 2024 04:25 UTC](https://forum.robotframework.org/t/desired-capabilities-has-been-deprecated-and-removed/7478/3 "2024-06-27T04:25:57Z")

</div>

Looks like that was deprecated with [SeleniumLibrary 6.1.3](https://github.com/robotframework/SeleniumLibrary/releases/tag/v6.1.3) (current version is [6.4.0](https://github.com/robotframework/SeleniumLibrary/releases/tag/v6.4.0)) as it was deprecated by Selenium, so not much SeleniumLibrary can do about that.

I guess your options are:

- use an older unsupported version of SeleniumLibrary and Selenium
- find out the new way to do the same thing and update your scripts

Sorry I’m not familiar with the functionality so not able to help much, hopefully this is helpful

Dave.
