Domanda di colloquio di TPS

How the locators are created? How do you handle flaky tests?