Appium 刚开始学习,运行时报 org.openqa.selenium.SessionNotCreatedException: A new session could not be created

逝水无痕 · 2014年09月18日 · 最后由 moshushi1111 回复于 2014年09月19日 · 2210 次阅读

运行时报错:
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: The following desired capabilities are required, but were not provided: platformName, deviceName) (WARNING: The server did not provide any stacktrace information)

请各位大神帮忙指点 谢谢

共收到 3 条回复 时间 点赞

如果是学习的话,能看下日志嘛?太明显的错误了。都提示你,缺少什么了。看看文档。

The following desired capabilities are required, but were not provided: platformName, deviceName

capabilities.setCapability("platformName", "Android");

capabilities.setCapability("deviceName","Galaxy Note3");

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册