# TypeError: WebDriver.\_\_init\_\_() got an unexpected keyword argument 'chrome\_options'

**URL:** <https://forum.robotframework.org/t/typeerror-webdriver-init-got-an-unexpected-keyword-argument-chrome-options/7001>\
**Category:** Robot Framework\
**Created:** [14 March 2024 09:01 UTC](https://forum.robotframework.org/t/typeerror-webdriver-init-got-an-unexpected-keyword-argument-chrome-options/7001 "2024-03-14T09:01:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswini.teju19](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@aswini.teju19](https://forum.robotframework.org/u/aswini.teju19)\
**Post date:** [14 March 2024 09:01 UTC](https://forum.robotframework.org/t/typeerror-webdriver-init-got-an-unexpected-keyword-argument-chrome-options/7001/1 "2024-03-14T09:01:39Z")

</div>

I am getting below error when i try to use chrome options. Below is the code and error log.  
Code:  
Start Remote Debugger  
${path}= Set Variable ${userDir.replace(“\”, “\\”)}\\AppData\\Local\\Microsoft\\Teams\\current\\Teams.exe --remote-debugging-port=7070  
Log Getting the path for Remote debugger  
Run Process cmd /c ${path} shell=True timeout=None stdout=PIPE stderr=PIPE  
Log Starting the debugger mode from command prompt  
${chrome\_options}= Evaluate sys.modules[‘selenium.webdriver’].ChromeOptions() sys  
Call Method ${chrome\_options} add\_argument --start-maximized  
Call Method ${chrome\_options} add\_experimental\_option debuggerAddress 127.0.0.1:7070  
Create Webdriver Chrome chrome\_options=${chrome\_options}  
Sleep 5s

Error:  
Start Remote Debugger | FAIL |  
TypeError: WebDriver. **init** () got an unexpected keyword argument ‘chrome\_options’

Versions:  
Python- Python 3.11.8  
robot- Robot Framework 7.0 (Python 3.11.8 on win32)  
selenium- Version: 4.18.1  
Appium-Python-Client 4.0.0  
attrs 23.2.0  
certifi 2024.2.2  
cffi 1.16.0  
decorator 5.1.1  
docutils 0.20.1  
h11 0.14.0  
idna 3.6  
kitchen 1.2.6  
outcome 1.3.0.post0  
pip 24.0  
pycparser 2.21  
PySocks 1.7.1  
robotframework 7.0  
robotframework-appiumlibrary 2.0.0  
robotframework-pythonlibcore 4.3.0  
robotframework-seleniumlibrary 6.2.0  
selenium 4.18.1  
setuptools 65.5.0  
six 1.16.0  
sniffio 1.3.1  
sortedcontainers 2.4.0  
trio 0.24.0  
trio-websocket 0.11.1  
typing\_extensions 4.10.0  
urllib3 1.26.18  
wsproto 1.2.0

Please help since i am blocked completely

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [14 March 2024 15:12 UTC](https://forum.robotframework.org/t/typeerror-webdriver-init-got-an-unexpected-keyword-argument-chrome-options/7001/2 "2024-03-14T15:12:08Z")

</div>

chrome\_options has been deprecated since 3.8.0 Selenium release. Its just called “options” now …

> <https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES#L706>
