Appium version 2.0 All non-standard capabilities should have a vendor prefix. The following capabilities did not have one:
I get the above error when running it in CLI
Trying to get started following a guide however, I have been stuck on this point for some time.
Does anyone have suggestions?
errors below
[XCUITestDriver@e182 (27bd854a)] Got response with status 400: {"value":{"error":"invalid argument","message":"All non-standard capabilities should have a vendor prefix. The following capabilities did not have one: bundleId,arguments,environment,eventloopIdleDelaySec,shouldWaitForQuiescence,shouldUseTestManagerForVisibilityDetection,maxTypingFrequency,shouldUseSingletonTestManager,shouldTerminateApp,forceAppLaunch,useNativeCachingStrategy,forceSimulatorSoftwareKeyboardPresence","stacktrace":"InvalidArgumentError: All non-standard capabilities should have a vendor prefix. The following capabilities did not have one: bundleId,arguments,environment,eventloopIdleDelaySec,shouldWaitForQuiescence,shouldUseTestManagerForVisibilityDetection,maxTypingFrequency,shouldUseSingletonTestManager,shouldTerminateApp,forceAppLaunch,useNativeCachingStrategy,forceSimulatorSoftwareKeyboardPresence\n at parseCaps (/usr/local/lib/node_modules/appium/node_modules/@appium/base-driver/lib/basedriver/capabilities.js:200:11)\n at processCapabilities (/usr/local/lib/node_modules/appium/node...
[debug] [W3C] Matched W3C error code 'invalid argument' to InvalidArgumentError
[debug] [XCUITestDriver@e182 (27bd854a)] Failed to create WDA session (All non-standard capabilities should have a vendor prefix. The following capabilities did not have one: bundleId,arguments,environment,eventloopIdleDelaySec,shouldWaitForQuiescence,shouldUseTestManagerForVisibilityDetection,maxTypingFrequency,shouldUseSingletonTestManager,shouldTerminateApp,forceAppLaunch,useNativeCachingStrategy,forceSimulatorSoftwareKeyboardPresence). Retrying...
[debug] [XCUITestDriver@e182 (27bd854a)] Event 'wdaSessionAttempted' logged at 1662547005308 (11:36:45 GMT+0100 (British Summer Time))
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: All non-standard capabilities should have a vendor prefix. The following capabilities did not have one: bundleId,arguments,environment,eventloopIdleDelaySec,shouldWaitForQuiescence,shouldUseTestManagerForVisibilityDetection,maxTypingFrequency,shouldUseSingletonTestManager,shouldTerminateApp,forceAppLaunch,useNativeCachingStrategy,forceSimulatorSoftwareKeyboardPresence
code
service = new AppiumServiceBuilder().withAppiumJS(new File("//usr//local//lib//node_modules//appium//build//lib//main.js"))
.withIPAddress("127.0.0.1").usingPort(8100).build();
service.start();
XCUITestOptions options = new XCUITestOptions();
options.setDeviceName("iPhone 13 Pro");
options.setApp("/Users/usr/eclipse-workspace/1/Appium/src/test/java/Util/myapp.app");
options.setPlatformVersion("15.5");
options.setWdaLaunchTimeout(Duration.ofSeconds(50));
options.setAutomationName("XCUITest");
driver = new IOSDriver(new URL("http://127.0.0.1:8100"),options);
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(50));