Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
captureScreen连续两次截图相同画面下不会返回,一直卡住,直到画面改变,有时画面不动会无限卡死,直到手机上的时间变动,造成间接性卡顿,ec在requestScreenCapture有个参数可以不等待画面改变直接返回,建议修复
有一个不是办法的办法,就是在截图之前滑动一下屏幕,这个问题就可以解决掉。 选择的滑动地方要有一定的技术含量。 swipe(500,(device.height/2)+50,500,device.height/2,300) swipe(500,device.height/2,500,(device.height/2)+50,300) //可以解决captureScreen()卡顿问题,但是不咋好用,会引入其他问题 let screen = captureScreen()