I need to click on an element before which i need to check if an element exists and then click on the element. The challenge here is that the element is located at the end of th