Coder Social home page Coder Social logo

Comments (1)

chenhengjie123 avatar chenhengjie123 commented on August 26, 2024

红蓝点卡住原因是 wda 对于滑动事件的响应慢,且容易超时变为500返回。响应慢的原因是经常 dump 控件树,dump 操作是非常耗时的(复杂页面10s以上很正常)

解决点:

1、远程控制页面连上设备后,把默认的控件树 dump 深度,改为0,可以显著提升滑动流畅度。缺点是如果有连上这个 wda 做 UI 自动化的需要,UI自动化侧需要重新把深度调回默认值,否则会因为控件树是空的导致全部控件查找失败。
参考操作:
把连接后默认设置的帧率改为30fps
通过 get 请求访问 <设备 wda 地址>/session/<sessionID>/appium/settings 即可看到完整的配置项,其中和控件深度有关的配置项带有 snapshot 关键字。

2、把wda响应超时时间延长(解决只有刷新后才有反应问题)。这个改动目前 ios provider 项目已有,更新代码后重启即可。

from atxserver2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.