File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ def __init__(
104
104
self .memory_folder = memory_folder
105
105
self .close_after_completion = close_after_completion
106
106
self .remote_url = remote_url
107
- self .desired_capabilities = desired_capabilities
108
107
109
108
"""Fire up the compiler."""
110
109
self .instruction_compiler = InstructionCompiler (
@@ -135,12 +134,12 @@ def __init__(
135
134
# Check if remote_url is set and conditionally set the driver to a remote endpoint
136
135
if remote_url :
137
136
_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 )
139
138
else :
140
139
_chrome_options .add_argument (f"user-data-dir={ user_data_dir } " )
141
140
# Instantiate Service with the path to the chromedriver and the options.
142
141
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 )
144
143
# 🤫 Evade detection.
145
144
self .driver .execute_script ("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})" )
146
145
You can’t perform that action at this time.
0 commit comments