What is the recommended approach for locating elements whose IDs are dynamically generated and change on every page load?