Replace desired_capabilities with options as
from selenium.webdriver.chrome.options import Options as ChromeOptions driver = webdriver.Remote(command_executor=executor, options=options)