We are using SeleniumLibrary version : 6.1.0 for scripting.
Have below set of robot instruction :
${downloadPath}= Get Variable Value Download Path
${prefs}= Create Dictionary download.default_directory=${downloadPath}
Open Browser browser=${browser} options=headless=${headless};add_experimental_option("prefs", ${prefs}) remote_url=${remoteUrl} desired_capabilities=${desired_capabilities}
Here we setting up default downloads path in options. we are using EDGE browser to test the scripts. This works fine on local machine which is Windows machine. We tried to execute same TC on Remote Server, and its Linux instance. Same code is not working there, and what we found implementation for edge browser in Python38\Lib\site-packages\SeleniumLibrary\keywords\webdrivertools\webdrivertools.py
if remote_url:
defaul_caps = webdriver.DesiredCapabilities.EDGE.copy()
desired_capabilities = self._remote_capabilities_resolver(
desired_capabilities, defaul_caps
)
return self._remote(desired_capabilities, remote_url)
where in return self._remote(desired_capabilities, remote_url) line options=options is missing. Can you check ?
We are using SeleniumLibrary version : 6.1.0 for scripting.
Have below set of robot instruction :
Here we setting up default downloads path in options. we are using EDGE browser to test the scripts. This works fine on local machine which is Windows machine. We tried to execute same TC on Remote Server, and its Linux instance. Same code is not working there, and what we found implementation for edge browser in Python38\Lib\site-packages\SeleniumLibrary\keywords\webdrivertools\webdrivertools.py