I'm currently doing some testing on a platform migration where I need to automate testing on software that exists on one platform, and effectively perform the same automation on the new platform once it's been migrated to the other platform. The catch is that although the software is effectively the same(or very similar) in functionality, the Xpaths, components and identifiers will be different.
To get around this I want to have a class for each page on platform A (pA) and a class for each page on platform B (pB). however, I want them to share the same feature files (and maybe even step defs if possible) but select which platform is being tested on at runtime (in Appsettings.Json).
any idea how i'd go about doing this in C# selenium?