测试积点老人 发表于 2020-11-10 10:34:00

java appium 找元素有时候报错

java appium 找元素有时候报错,以下是报错信息,没有看明白,从这字面意思上看好像是socket不可写,有好的解决办法吗?谢谢!
Error: write EPIPE

    at _errnoException (util.js:1024:11)

    at Socket._writeGeneric (net.js:767:25)

    at Socket._write (net.js:786:8)

    at doWrite (_stream_writable.js:387:12)

    at writeOrBuffer (_stream_writable.js:373:5)

    at Socket.Writable.write (_stream_writable.js:290:11)

    at Socket.write (net.js:704:40)

    at Socket.stream.write (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\ansi\lib\newlines.js:36:21)

    at exports.Console.Console.log (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\lib\winston\transports\console.js:119:20)

    at transportLog (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\lib\winston\logger.js:234:15)

    at C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\node_modules\async\lib\async.js:157:13

    at _each (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\node_modules\async\lib\async.js:57:9)

    at Object.async.each (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\node_modules\async\lib\async.js:156:9)

    at exports.Logger.Logger.log (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\lib\winston\logger.js:246:9)

    at exports.Logger.target.(anonymous function) (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\winston\lib\winston\common.js:54:18)

    at EventEmitter.<anonymous> (../../lib/logsink.js:197:22)

    at emitOne (events.js:116:13)

    at EventEmitter.emit (events.js:211:7)

    at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\npmlog\log.js:158:8)

    at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\npmlog\log.js:231:21)

    at asyncHandler$ (../../../lib/mjsonwp/mjsonwp.js:275:13)

    at tryCatch (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)

    at GeneratorFunctionPrototype.invoke (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)

    at GeneratorFunctionPrototype.prototype.(anonymous function) (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)

    at GeneratorFunctionPrototype.invoke (C:\Program Files\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)

    at <anonymous>



bellas 发表于 2020-11-11 09:54:39

没有定位到

郭小贱 发表于 2020-11-11 10:14:11

看看node版本跟appium版本是否搭配..

qqq911 发表于 2020-11-11 10:32:32

换种定位方式试试呢

海海豚 发表于 2020-11-11 13:37:07

还是定位的问题,更换定位方法

jingzizx 发表于 2020-11-11 15:28:35

没找到吧
页: [1]
查看完整版本: java appium 找元素有时候报错