Skip to content

W3C capabilities are incorrect #229

Closed
appium/java-client
#913
@dpgraham

Description

@dpgraham

Description

  • I just looked at the logs posted by a user of the client and it was creating sessions with these capabilities:
{
  "desiredCapabilities": {
        "app": xxx,
        "deviceName": xxx,
        "fullReset": true,
        "newCommandTimeout": 1800,
        "platformName": "ios",
        "platformVersion": "11.3.1",
        "startIWDP": true,
        "udid": xxx,
        "updatedWDABundleId": "io.appium.WebDriverAgentRunner",
        "xcodeOrgId": xxx,
        "xcodeSigningId": "iPhone Developer"
    },
    "firstMatch": [{
        "platformName": "ios"
    }
}

The format should be like this (see https://github.com/jlipps/simple-wd-spec#processing-capabilities for reference):

{
  "alwaysMatch": {
        "app": xxx,
        "deviceName": xxx,
        "fullReset": true,
        "newCommandTimeout": 1800,
        "platformName": "ios",
        "platformVersion": "11.3.1",
        "startIWDP": true,
        "udid": xxx,
        "updatedWDABundleId": "io.appium.WebDriverAgentRunner",
        "xcodeOrgId": xxx,
        "xcodeSigningId": "iPhone Developer"
    },
    "firstMatch": [{
        "platformName": "ios"
    }
}

desiredCapabilities should be alwaysMatch

We had the same issue in the Java client

(refer to appium/appium#10668 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions