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

W3C capabilities are incorrect #229

Closed
dpgraham opened this issue May 15, 2018 · 3 comments · Fixed by appium/java-client#913
Closed

W3C capabilities are incorrect #229

dpgraham opened this issue May 15, 2018 · 3 comments · Fixed by appium/java-client#913

Comments

@dpgraham
Copy link
Contributor

dpgraham commented May 15, 2018

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))

@justintoth
Copy link

Any update on this? We're completely blocked on running our Appium test cases until this is resolved...

@laolubenson
Copy link
Collaborator

@justintoth does upgrading your selenium.Webdriver dll/ package resolve your issue? the code pertaining to this issue is in that Webdriver.dll. If this issue exists in the latest version of Selemium.Webdriver then the issue should be raised in that repo and not this one.

@dpgraham
Copy link
Contributor Author

@akinsolb It's an Appium issue.

According to @justintoth's logs, the desired capabilities are being sent in this format:

{
    "desiredCapabilities": {
        "device": "Android",
        "deviceName": "FA6CE0302473",
        "platformName": "Android",
        "platformVersion": "8.1",
        "appPackage": "com.rpr.mobile",
        "appActivity": "com.rpr.mobile.droid.SplashActivity",
        "automationName": "uiautomator2",
        "forceMjsonwp": "true",
        "newCommandTimeout": 120,
        "testobject_test_name": "CanLookupPropertyDetail"
    },
    "capabilities": {
        "firstMatch": [{
            "platformName": "Android"
        }]
    }
}

which is missing the alwaysMatch capability.

We had the same problem in the Java client, it was sending capabilities.desiredCapabilities instead of capabilities.alwaysMatch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants