-
-
Notifications
You must be signed in to change notification settings - Fork 769
Updated startActivity() method to allow starting activities without stopping target app. #261
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
Updated startActivity() method to allow starting activities without stopping target app. #261
Conversation
…starting activity without killing target app.
@TikhomirovSergey, I assume test must be isolated and use only ApiDemos-debug.apk? |
Yep. They should be isolated (not dependent). We usually use ApiDemos-debug.apk. Somewhere default activities of a device/emulator are used. You can look at |
@TikhomirovSergey It looks like there is a test related to this PR - startActivityInThisAppTest(). |
ok. |
Does this work? the |
@Jonahss,
This pair of arguments is being used to control the behavior. |
Cool, looks good then. |
@TikhomirovSergey, @Jonahss I covered both behaviors with elaborate test. |
👍 because ids of elemends are probably were changed. Can you look at them and synchronize them with the new .apk if you are facing the same problem? I have nothing this change. It is expected it will be published soon. I'm working on one more interesting feature too :) @Jonahss Please look at this :) |
@TikhomirovSergey, @Jonahss I have updated these tests. |
Cool. |
…rget-app Updated startActivity() method to allow starting activities without stopping target app.
The reason behind is that Appium always stops target app when startActivity() method is called.
That makes impossible to start activities that belong to app under test without killing it.
This PR introduces new optional backward-compatible parameter to control this behavior.