I'll suggest using startWith, endWith or contains in locator to remove the hard code domain.