当前位置:网站首页>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值。
边栏推荐
- Mysql database ignores case
- Quick sort
- 数据库常见面试题都给你准备好了
- Distributed task scheduling
- Subtractive integer (number theory)
- Leetcode 336 palindrome pair (palindrome string + hash)
- What are the software testing requirements analysis methods? Let's have a look
- Minimum transfer times
- Change tabledata column name
- 128. 最长连续序列-哈希表
猜你喜欢

Load the source code of 2D 3D virtual anchor in the web page (1: project introduction and source code)
![Sword finger offer:[day 8 dynamic planning (simple)] --- > frog jumping on steps](/img/0a/65bc44850e52204af278e50a8f86eb.jpg)
Sword finger offer:[day 8 dynamic planning (simple)] --- > frog jumping on steps
Selection of interview questions for software testing

Minimum transfer times

List、Set、Map的区别
软件测试工作经验分享,一定有你想知道的

I Regular expression to finite state automata: regular expression to NFA
还在原地踏步,提高软件测试能力的方法你知道吗?

Multi table operation instance

解压缩zip文件的工具类
随机推荐
Subtractive integer (number theory)
Several ways to restart kubernetes pod
Can you migrate backwards before the first migration in the south- Can you migrate backwards to before the first migration in South?
Database common interview questions are ready for you
Permission modifiers and code blocks
Latex common symbols summary
Meeting time (topology sorting +dp)
Jupyter notebook sets the default browser to open with an error syntaxerror: (Unicode error) 'UTF-8' codec can't decode byte 0xd4
Implementation of hotspot reference
Ceil, floor and round functions
自动化测试框架的设计原则有哪些?我帮你总结好了快来看
Solution of hmaster process flash back after starting
Occupied occupied occupied occupied occupied
Description of string
Hotspot Metaspace
Record and store user video playback history selection
Golandidea 2020.01 cracked version
MySQL安装
Solve the problem that when unity is opened, you will be prompted that the project has been opened, but you have not opened it before (it may be closed abnormally before)
Countdownlatch example