Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max.xpath.actions 不生效 #282

Open
taisiting opened this issue May 16, 2024 · 4 comments
Open

max.xpath.actions 不生效 #282

taisiting opened this issue May 16, 2024 · 4 comments

Comments

@taisiting
Copy link

配置了 max.xpath.actions, 并且 adb push max.xpath.actions /sdcard,运行fastbot后并没有生效配置内容
[
{
"prob": 1,
"activity":"com.game.ui.MDMainActivity",
"times": 1,
"actions": [
{
"xpath":"//[@resource-id='com.game.friends.android:id/soundWave']",
"action": "CLICK",
"throttle": 500
}
]
},
{
"prob": 1,
"activity":"com.game.voiceroom.ui.VoiceRoomActivity",
"times": 1,
"actions": [
{
"xpath":"//
[@resource-id='com.game.friends.android:id/id_voice_room_country_iv']",
"action": "CLICK",
"throttle": 500
},
{
"xpath":"//[@resource-id='com.game.friends.android:id/bgView']",
"action": "CLICK",
"throttle": 500
},
{
"xpath":"//
[@resource-id='com.game.friends.android:id/giftImage']",
"action": "CLICK",
"throttle": 500
},
{
"xpath":"//*[@resource-id='com.game.friends.android:id/id_send_gift_layout']",
"action": "CLICK",
"throttle": 500
}
]
}
]

@Woody-Tang
Copy link

找到解决方法了嘛?我的需求是配置屏蔽控件,同样使用xpath定位,不生效。

@fengzhongdeyan62912
Copy link

有解决办法吗?我这边需求是进到一个页面里后再跑测试,也是使用xpath定位,没有生效

@taisiting
Copy link
Author

taisiting commented Jun 26, 2024 via email

@taisiting
Copy link
Author

taisiting commented Jun 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants