droidbot icon indicating copy to clipboard operation
droidbot copied to clipboard

Close automatically.

Open aavuzb opened this issue 2 years ago • 1 comments

Hello. Let me ask a question about closing or stopping apk and device automatically when all objects on screen are touched. So, I am testing a simple apk using Droidbot. However, even all buttons or objects are explored (there is no new object), DroidBot doesn't finish exploring automatically. If I set a time, DroidBot finishes exploring when time is ended, however without setting time, DroidBot doesn't stop apk and device automatically.

Thank you

aavuzb avatar Jun 01 '23 02:06 aavuzb

You can do this is to modify the input_policy.py (e.g. https://github.com/honeynet/droidbot/blob/c958a0b5281d5354a230b3b72c724f4e206f3f46/droidbot/input_policy.py#L371), in which you can add the logic to break the loop when there is no UI state to explore.

I don't intend to add this in the main branch because this doesn't seem like a common feature.

yuanchun-li avatar Jul 12 '23 06:07 yuanchun-li