Skip to content

Missing "Options" setup in EDGE browser for remote url execution #1844

@ap0087105

Description

@ap0087105

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 ?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions