How is it possible to select an element from the list of elements and search on the page, when the element is found, click on it, and if not found, again, select another element from the list and search on the page until there is an element in the list. Does not match with the same element