Added element.click to erase data to make sure the element has been clicked