File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,11 @@ def create_webdriver(command_executor, desired_capabilities):
151
151
152
152
if browser_name == "chrome" :
153
153
desired_capabilities = DesiredCapabilities .CHROME .copy ()
154
- options = chrome .options .Options ()
155
- browser_profile_path = os .path .join ('/tmp' , _get_chrome_profile ())
156
- options .add_argument ('--user-data-dir=' + browser_profile_path )
157
154
if desired_capabilities ["version" ] > CHROME_EXT_MAX_CHROME_VERSION :
158
155
# Add the chrome app to capabilities.
156
+ options = chrome .options .Options ()
157
+ browser_profile_path = os .path .join ('/tmp' , _get_chrome_profile ())
158
+ options .add_argument ('--user-data-dir=' + browser_profile_path )
159
159
options .add_extension (os .path .join (_EXTENSIONS_DIR , _CHROME_APP_FNAME ))
160
160
options .add_argument ("--user-agent=" + TESTS_USER_AGENT_CHROME )
161
161
else :
You can’t perform that action at this time.
0 commit comments