File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -139,14 +139,16 @@ def create_webdriver(command_executor, desired_capabilities):
139
139
# Fill in defaults from DesiredCapabilities.{CHROME,FIREFOX} if they are
140
140
# missing from the desired_capabilities dict above.
141
141
_capabilities = desired_capabilities
142
+ platform = os .getenv ('SELENIUM_PLATFORM' , None )
143
+ if platform :
144
+ _capabilities ['platform' ] = platform
142
145
browser_profile = None
143
146
browser_profile_path = None
144
147
145
148
SELENIUM_BROWSER = browser_name
146
149
147
150
if browser_name == "chrome" :
148
151
desired_capabilities = DesiredCapabilities .CHROME .copy ()
149
- desired_capabilities .update (_capabilities )
150
152
options = chrome .options .Options ()
151
153
browser_profile_path = os .path .join ('/tmp' , _get_chrome_profile ())
152
154
options .add_argument ('--user-data-dir=' + browser_profile_path )
You can’t perform that action at this time.
0 commit comments