Skip to content

Failed when using the format IP:port to set desired_capabilities #206

Closed

Description

@cookie314

When using S2L, if I want to set a manual proxy, I set the parameter desired_capabilities like this: desired_capabilities=proxyType:manual , httpProxy:IP:port
Then it failed because the IP:port has a ":", which affect the resolving of this json.
Log show:
ValueError: too many values to unpack
Traceback (most recent call last):
"C:\RobotFramework\Python2.7.3\lib\site-packages\robotframework_selenium2library-1.2.0-py2.7.egg\Selenium2Library\keywords_browsermanagement.py", line 473, in _create_desired_capabilities (key, value) = cap.split(":")

Besides, when I set the path of profile I need to use ":" and "", like "c:\profiles", still fail. So maybe I used wrong syntax. Could you please help on this, thx.

Activity

  1. ombre42 commented on Jun 5, 2013

    @ombre42
    Contributor

    Duplicate of proxy support is still missing in 1.0.1
    I think this will be fixed in 1.3 by allowing a dictionary to passed in for desired_capabilities, but I have not tested it.

  2. ymost commented on Jul 15, 2013

    @ymost

    I had the same issue.

    Until an official I fix comes a long I just changed the line:

    (key, value) = cap.split(":")

    to:

    (key, value) = cap.split(":", 1)

    In the method '_create_desired_capabilities' in the file '_browsermanagement.py'.

    Works like a charm.

  3. emanlove commented on Dec 26, 2013

    @emanlove
    Member

    Fixed in #252.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions