question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Parameters were incorrect error from appium when called from protractor.

See original GitHub issue

The problem

When I try to run the device specific command (rotationGesture in this case), it throws error

Parameters were incorrect We wanted {“required”:[“x”,“y”,“radius”,“rotation”,“touchCount”,“duration”],“optional”:[“element”,“sessionId”,“id”]} and you sent [“x”,“y”,“duration”,“rotation”,“touchCount”]

Environment

  • Appium.app version 1.8.0
  • Desktop OS/version used to run Appium: MacOS 10.13.4
  • Mobile platform/version under test: Andriod/ 7.1.1
  • Real device or emulator/simulator: emulator

Details

We are using protractor(5.3.2) + WDBridge for creating session on Appium. Above error does not occur for all commands, e.g. lockDevice method works just fine. I tried implmenting comments from this issue, but had no luck.

Link to Appium logs

GIST

Code To Reproduce Issue [ Good To Have ]

config:

let wd = require('wd');
let protractor = require('protractor');
let wdBridge = require('wd-bridge')(protractor, wd);
exports.config = {
    seleniumAddress: 'http://localhost:4723/wd/hub',

    multiCapabilities: [{
        browserName: '',
        platformName: 'Android',
        platformVersion: '7.1.1',
        deviceName: `simulatorName`,
        app: 'apk path',
        newCommandTimeout: 30 * 60000,
        appPackage: 'com.kerio.mykerio',
        appActivity: 'com.kerio.mykerio.AppliancesActivity',
    }],
    onPrepare: function () {
        wdBridge.initFromProtractor(exports.config);
        reportersSetup.onPrepareSetup();
    },

Spec

import {browser} from 'protractor';
await extend(browser.driver).rotationGesture(0, 0, 5, 0);

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Jun 11, 2018

Submitting a PR is always a good idea

0reactions
lock[bot]commented, Aug 21, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BadParametersError and NotImplementedError on timeout cmds
I have used the same stack with same versions (appium, protractor, ... error running command: BadParametersError: Parameters were incorrect.
Read more >
appium/appium - Gitter
Parameters were incorrect. We wanted "W3C protocol expects any of script, pageLoad or implicit to be set" and you sent {"type":"implicit","ms":5000} Error: ...
Read more >
Appium + Protractor + Android Device error timeout
I had the exact same problem and solved it by using both the autoWebview and autoWebviewTimeout capabilities. My capabilities currently look ...
Read more >
Debug BrowserStack Automate failed to start browser error
If the target browser is incompatible with Selenium JAR or Appium version you have specified in the script, the browser will fail to...
Read more >
How to Fix Common Errors with Appium Testing Framework
Misusing XPath locators is a mutual mistake with Selenium, in spite of the fact that it's more unfortunate error in the Appium environment....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found