I have a lot of functional tests in Python. As expected , they use a wide variety of css/xpath selectors .
I think I read somewhere that a practice is to have a dictionary where each selector would be stored. So, when a random selector in a random page changes for some reason, then theoretically it's selectors and/or attributes (id,name) would be changed only one time in this dictionary.
Is this possible? And if yes, what would be the structure of the dictionary/list/array? I am currently familiarizing myself with the theory of lists and dictionaries to see how to implement it. I think that one solution would be