Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote browser fails when no options provided #1855

Closed
emanlove opened this issue Sep 24, 2023 · 0 comments
Closed

Remote browser fails when no options provided #1855

emanlove opened this issue Sep 24, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@emanlove
Copy link
Member

If using a remote Chrome, Edge or Safari (suspected but not yet proven) and no options are given the `Open Browser' keyword throws an error.

Steps to reproduce the issue

First start a chromedriver instance on port 7272

chromedriver --port=7272

then, in a separate terminal, run the following robot script

*** Settings ***
Library  SeleniumLibrary

*** Variables ***
${URL}            https://robotframework.org/
${REMOTE_BETA}    http://localhost:7272

*** Test Cases ***
Open Chrome with Remote Webdriver
    Open Browser
    ...    url=${URL}
    ...    browser=chrome
    ...    remote_url=${REMOTE_BETA}

Error messages and additional information

An error is raised: AttributeError: 'NoneType' object has no attribute 'to_capabilities'

Expected behavior and actual behavior

should open the browser and navigate to https://robotframework.org/

Environment

Browser: Chrome and Edge
Libraries

  • Robot Framework: 6.1.1
  • Selenium: 4.2.0
  • SeleniumLibrary: 6.1.2

Acknowldgements

This issue was first reported by Tero Lempiäinen.

@emanlove emanlove self-assigned this Sep 24, 2023
@emanlove emanlove added bug in progress priority: critical acknowledge To be acknowledged in release notes labels Sep 24, 2023
@emanlove emanlove added this to the v6.1.3 milestone Sep 24, 2023
emanlove added a commit to emanlove/robotframework-seleniumlibrary that referenced this issue Sep 24, 2023
This is an initial attempt/design for a test suite that verifies
"remote" browsers work without options. This is to test against the
issue outlined in robotframework#1855. I have been manually runnning the webdrivers
locally but this second edition is trying to do that in the setup and
then cleanup in the teardown. For some reason this is not working and I
need to investigate further.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant