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

Close automatically. #150

Open
aavuzb opened this issue Jun 1, 2023 · 1 comment
Open

Close automatically. #150

aavuzb opened this issue Jun 1, 2023 · 1 comment

Comments

@aavuzb
Copy link

aavuzb commented Jun 1, 2023

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

@yuanchun-li
Copy link
Collaborator

You can do this is to modify the input_policy.py (e.g.

def generate_event_based_on_utg(self):
), 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.

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

2 participants