I want to know is there any tutorial to create appium-ruby in page object model, like creating page class using element and calling the method in steps. I am using rspec, so using rspec need a guidance to create test files in page object pattern.
I don’t know if there is a tutorial out there, but we did just this. We tried two different methods.
The first way assumed an application where navigation between different screens was entirely predictable. We created a variety of screen classes, and they had various navigate_to_* methods. The constructors verify that a relatively unique screen property is present or else raise an exception.
This didn’t work in all cases as we have some walkthrough screens that are not strictly ordered.
The second way we built, and still use, involved creating a screen (or page) factory which detected the screen and returned the appropriate screen object. This can be done by detecting a relatively unique object on the screen, or, if you are using Android and your app is built this way, you can use current_activity to identify the screen.