How to cleanly implement 2 versions of a page in Appium? Page factory?
There is a new version of my app’s home page that I need to start testing. The page is theoretically identical to the old version—new version is just an architectural overhaul with a different page source as a result. What’s the right approach to being able to test both concurrently in a python repo? 2 pages (legacy vs modern) is a common challenge for the team I started working with so I am hoping to establish a convention here.
I was thinking maybe using a factory pattern and instantiating one or the other based on an environment variable that also acts as a gate for a fixture that toggles the feature or maybe points to a branch with it enabled by default. But I’m pretty new to UI automation so I’d like to ask if there’s any other approach that should be considered