在Mac上使用Appium的Mac-Xcode-Selenium-Java-实践的Downlord UI Catlog应用程序 低于
遇到内部错误运行命令:错误:无法从应用程序中提取Info.plist:Plist文件不存在:'/Users/mehul/Desktop/UICatalog.app/Info.plist'
public class base
{
public static void main(String[] args) throws MalformedURLException {
DesiredCapabilities d = new DesiredCapabilities();
d.setCapability(MobileCapabilityType.DEVICE_NAME, "iPhone 6");
d.setCapability(MobileCapabilityType.PLATFORM_NAME, "IOS");
d.setCapability(MobileCapabilityType.PLATFORM_VERSION, "12.2");
d.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.IOS_XCUI_TEST);
d.setCapability(MobileCapabilityType.APP, "//Users//mehul//Desktop//UICatalog.app");
IOSDriver<IOSElement> driver = new IOSDriver<>(new URL("http://127.0.0.1:4723/wd/hub"),d);
}}
答案 0 :(得分:0)
以下可能是导致此错误的原因:
.app
实际上不是.app
文件,而是.ipa
。//Users//mehul//Desktop//UICatalog.app
是有效的directory
。