I have a 2 selector. One is prod URL, other is test URL . I want to use selector like; The url comes from this or this. I used matching:regex but it has to be match. When i navigate the other pages the url will be changed. We have to eliminate login in url.
If your application is same and it’s just different environment, you don’t need to check for URL. Use other attributes like title or anything else that is unique to identify the page.