-
Notifications
You must be signed in to change notification settings - Fork 618
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
Add rotation #143
Add rotation #143
Conversation
The problem with this approach is that it works on activity level and not on a device level and therefore the behavior is pretty far from the user experience. The consequence is that:
Currently I don't think this belongs in the official project because of all the confusion it will cause. I think a better solution would be to make the emulator rotate like when when you use 7 and 9. |
Calabash currently provides nothing for rotation. Robotium has Sending key presses to the emulator depends on using OS specific APIs to focus the Android emulator and then send the key press. I don't think that's ideal. Telling people that rotation is exclusive to the expensive LessPainful device cloud is not cool. Surely there's some way to add this in a way that doesn't cause confusion. |
We try to keep everything in calabash working like something an user would do to the app. It could give value to some people that we add "set_activity_orientation" to the api I just want it to be very clear that using that api is not simulating user input very well. Also, I don't think a predefined step is suitable for something as low level as this. I'm sorry if I made the impression that I don't want to include something like rotation into calabash because we want something extra on lesspainful.com because that's really not the case. We want calabash to be as powerful as possible. |
Adding
Thanks for the explanation. |
@jonasmaturana What do you think of this commit? I've removed the predefined step. |
Have you had a chance to look at the new rotation code? |
I have been looking at the code. I would like to merge the new action but I think the key should be |
You're looking at the new code from https://github.com/calabash/calabash-android/pull/143/files? It seems as if your comments are based on the old code. I replaced the code 12 days ago and eliminated the I'm happy to make additional changes for this to be merged. |
Let me know if changes are required. The key has already been updated. |
Fix #133
Example spec.