How to automate 2 or more similar websites with same business and application login But Different Element Locations?

I have two similar web applications to automate.

  • Both have same business logic and .
  • similar navigation(different domains).
  • BUT Different Locators of same elements.

How should i deal with this ?
How should i setup and manage everything efficiently?

I am using Katalon Studio.

Anyone encountered such scenarios ?

If you mean the xpath/css locators/selectors are different then you should probably treat them as entirely different AUTs.

If you mean only the URLs are different, you can store the different URLs in two different profiles and apply the correct profile when running the tests/suites.

2 Likes

its the 1st case.

Applications are similar. But at points, Locators are different (especially, when navigating to other page)

This is the right answer.