一月蔷薇_456 发表于 2018-2-26 16:29:58

appium报错合集

1.appium报错

org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible
causes are invalid address of the remote server or browser start-up failure.

1.cmd 输入appium -a 127.0.0.1 -p 4723 -U 98xxx –no-reset
提示信息:
error: uncaughtException: Cannot find module ‘internal/fs’ date=Thu May 18 2017
09:36:30 GMT+0800 (中国标准时间), pid=10648, uid=null, gid=null, cwd=D:\Program
等等

driver = new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub“), capabilities)
代码内地址写错,更改后Ok
另,
@After

public void tearDown() throws Exception {

    driver.quit();
}driver.quit();
这行代码添加后Ok,调试过程中去掉了,忘记添加。

2.第二个错误
org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original
error: Remote install failed: pkg: /data/local/tmp/c0c81c9ff864615633fa70f2f4d92955.apk

Failure ) (WARNING: The server did not provide any
stacktrace information)

手机端需要确认才能安装软件到手机,点击确定安装后Ok

梦想家 发表于 2018-2-26 17:27:38

:handshake
页: [1]
查看完整版本: appium报错合集