bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.06k stars 245 forks source link

max.xpath.actions 不生效 #282

Open taisiting opened 6 months ago

taisiting commented 6 months ago

配置了 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 commented 5 months ago

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

fengzhongdeyan62912 commented 5 months ago

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

taisiting commented 5 months ago

确保元素 clickable是true,

在 2024-05-31 14:51:36,"Woody-Tang" @.***> 写道:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

taisiting commented 5 months ago

确保元素 clickable是true,

在 2024-06-25 14:26:23,"fengzhongdeyan62912" @.***> 写道:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>