当前位置:网站首页>Autojs微信研究:微信不同的版本或模拟器上的微信里的控件ip是不同的。
Autojs微信研究:微信不同的版本或模拟器上的微信里的控件ip是不同的。
2022-06-12 09:20:00 【PYB3】
主要探索微信特殊性。
笔者表示微信很可能每次打包升级,微信的所有控件都会随机生成不同的ip
具体如下,全部都是本人实际操作所见!
手机端
微信版本:8.0.22(2022年5月24日15:34 最新版本)


尝试过其它手机只要是相同版本控件ip都是一样的
雷神模拟器端
微信版本:8.0.2(2022年5月24日15:36 最新版本)


微信id很可以会改变
微信title标题包括:微信、通讯录、发现。
测试发现,微信首页顶部title标题,本来id都是text1,但模拟器上的微信却是nk如图2。
手机上的微信 title都是一样的text1。


操作控件一定要给控件充分的执行时间
多使用sleep(3000);可以解决很多不执行下一步的奇怪问题。(亲测,被坑了很多次了)
总结
自动化脚本开发,切记不要全部靠id来执行控件唯一操作,如果app升级后或是其他设备上,id是会被改变的。原生app完全可以做到,不同版本,不同设备,每次升级时改变id值。
边栏推荐
- Leetcode 336 palindrome pair (palindrome string + hash)
- Quick sort
- Top command meaning
- Do you know the meaning behind these questions?
- Load the source code of 2D 3D virtual anchor in the web page (1: project introduction and source code)
- 卖疯了的临期产品:超低价、大混战与新希望
- Thread deadlock and its solution
- Complete knapsack problem 1
- Four steps for sending rockertmq producer messages
- (13) Text rendering text
猜你喜欢

Node sample background setup
![Offer:[day 8 dynamic planning (simple)] --- > maximum profit of stock](/img/42/000a3e601ba1771a1ee07fcd800307.jpg)
Offer:[day 8 dynamic planning (simple)] --- > maximum profit of stock

TAP 系列文章3 | Tanzu Application Platform 部署参考架构介绍

测试用例如何编写?

Description of string

Multi table operation instance
Automated test learning path, come and learn

【极术公开课预告】Arm最强MCU内核Cortex-M85处理器,全方位助力物联网创新(有抽奖)
ADB命令集锦,一起来学吧

Implementation of hotspot reference
随机推荐
Full alphabetic arrangement (pure alphabetic password dictionary)
Introduction Fibonacci series
电阻的作用有哪些?(超全)
2022 极术通讯-安谋科技纷争尘埃落定,本土半导体产业基石更稳
ABC253F Operations on a Matrix
Several ways to restart kubernetes pod
Mysql database ignores case
ADB command collection, let's learn together
2024. maximum difficulty of the exam - sliding window
Ceil, floor and round functions
功能测试面试常见的技术问题,总结好了你不看?
解压缩zip文件的工具类
What are the software testing requirements analysis methods? Let's have a look
Consumer configuration related
++ problems in C language
Selenium面试题分享
更改tabledata列名
Mycat的使用
MySQL - Import / export operation
端午节安康--诸佬在我心里越来越粽要了