Skip to content

Commit b6a6d07

Browse files
committed
removed desired capabilities. not used anymore
1 parent 16d266e commit b6a6d07

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

browserpilot/agents/gpt_selenium_agent.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def __init__(
104104
self.memory_folder = memory_folder
105105
self.close_after_completion = close_after_completion
106106
self.remote_url = remote_url
107-
self.desired_capabilities = desired_capabilities
108107

109108
"""Fire up the compiler."""
110109
self.instruction_compiler = InstructionCompiler(
@@ -135,12 +134,12 @@ def __init__(
135134
# Check if remote_url is set and conditionally set the driver to a remote endpoint
136135
if remote_url:
137136
_chrome_options.add_argument(f"--user-data-dir=/home/seluser/{user_data_dir}")
138-
self.driver = webdriver.Remote(command_executor=remote_url, options=_chrome_options, desired_capabilities=desired_capabilities)
137+
self.driver = webdriver.Remote(command_executor=remote_url, options=_chrome_options)
139138
else:
140139
_chrome_options.add_argument(f"user-data-dir={user_data_dir}")
141140
# Instantiate Service with the path to the chromedriver and the options.
142141
service = Service(chromedriver_path)
143-
self.driver = webdriver.Chrome(service=service, options=_chrome_options, desired_capabilities=desired_capabilities)
142+
self.driver = webdriver.Chrome(service=service, options=_chrome_options )
144143
# 🤫 Evade detection.
145144
self.driver.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})")
146145

0 commit comments

Comments
 (0)