appium踩过的坑
来源:互联网 发布:java开发书籍 编辑:程序博客网 时间:2024/04/28 12:42
运行appium报错:Appium will not work if used or installed with sudo
bixiaopeng@bixiaopengtekiMacBook-Pro ~$ error: Appium will not work if used or installed with sudo. Please rerun/install as a non-root user. If you had to install Appium using `sudo npm install -g appium`, the solution is to reinstall Node using a method (Homebrew, for example) that doesn't require sudo to install global npm packages.[1]+ Exit 1 appium
出错原因:
权限问题,无法使用sudo来运行appium
解决办法:
步骤1. 改变node的所有者
cd /usr/local/libsudo chown -R 普通用户名 node_modules
找到 .npm,cd进入后执行:
sudo chown -R 普通用户名 .npm
步骤2. 卸载appium
npm uninstall appium -g
步骤3. 重新安装appium
npm install -g appium
步骤4. 启动
appium &
步骤5. 查看是否运行成功
浏览器打开:
http://0.0.0.0:4723/
显示:
That URL did not map to a valid JSONWP resource
说明成功
Appium踩过的坑二:
运行iOS用例报错:We don't have write access to /Applications/Xcode.app..
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: We don't have write access to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/Applications/MobileSafari.app, please re-run authorize as bixiaopeng) (WARNING: The server did not provide any stacktrace information)Command duration or timeout: 308 millisecondsBuild info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'---------com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:202) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)Process finished with exit code 255
问题原因:
又是权限问题
解决办法:更改Xcode.app的权限
bixiaopeng@bixiaopengtekiMacBook-Pro Applications$ sudo chown -R bixiaopeng Xcode.appPassword:
再次运行:
OK
0 0
- appium踩过的坑
- appium踩过的坑
- appium踩过的坑(持续更新..)
- Appium 一些踩过的坑
- 趟过Appium的坑
- 趟过Appium的坑(1 Chrome version must be >= 43.0.2357.0)
- 踩过的坑
- 踩过的坑
- 踩过的坑
- Appium学习遇到的坑
- appium碰到的一些坑
- 我踩过的听过的那些坑
- Phonegap踩过的坑
- Phonegap踩过的坑
- Kendo踩过的坑
- Phonegap踩过的坑
- googleplay踩过的坑
- dispatch_group_t踩过的坑
- BandwagonHost 搬瓦工VPS:新增洛杉矶数据中心 512M内存年付9.99美金 多款超值套餐年付3.99美金起
- 关联、聚合、组合的区别
- Log4J基础详解及示例大全
- java.lang.OutOfMemoryError内存溢出问题解决方法
- 【ExtJs】利用树状结构、Border布局与标签页刻划OA界面
- appium踩过的坑
- JAVA反射捕获自定义的异常
- 习题3—14
- java 继承的基本实现
- android spinner用法
- jquery - 闭包浅析!
- Android中BindService方式使用的理解
- 重建二叉树
- C# 泛型