How is the webelement identified since the id's are generated dynamically o

How is the webelement identified since the id’s are generated dynamically on each run?