jamesdeath123
jamesdeath123

Reputation: 4608

Appium 1.2.0 The following desired capabilities are required but were not provided: deviceName

I am running appium on an IOS app, and try to open the Appium Inspector, it used to work fine until one day it suddenly failed with the error message:

The following desired capabilities are required not were not provided: deviceName

I've no idea why it suddenly didn't work, because thats the same Appium version and same .app file that I've been using.

Anyway, right now I have no idea how to set the desired capabilities; I don't even know which file to go to for setting that up; all I have is an .app file; does it require changing the source code of the app? Could any one provide some guideline regarding which file should I change and what value would deviceName expect?

Thanks!

enter image description here

Upvotes: 1

Views: 3613

Answers (3)

Xiao
Xiao

Reputation: 12695

According to the attached snapshot, enabling Force Device with name iPhone should work.

Upvotes: 0

Siwei
Siwei

Reputation: 21549

For those who met the same problem in MAC:

1.make sure you specified the 'app' file

2.make sure you checked the "prelaunch application" option in settings. prelaunch application

3.and then restart the apppium server. focus on the error message (there must be plenty of text) and then adjust your settings

Upvotes: 1

Jess
Jess

Reputation: 3146

Setting Desired Capabilities in the Appium GUI is done by clicking on the Apple icon for iOS-specific capabilities, or by clicking on the Gear icon for global capabilities.

The server capabilities and the desired capabilities are mixed in with eachother in the GUI.

Refer to the Appium capability documentation for information on each capability.

Upvotes: 3

Related Questions