Parameters were incorrect error from appium when called from protractor.
See original GitHub issueThe 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
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:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Submitting a PR is always a good idea
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.