I tried to click on an element using the code below but it is throwing Exception: No Such Element Selections
WebElement clear=driver.findElement(By.xpath(PageUtility.OPEN_LOCATION_POPUP_XPATH));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", clear);
and while finding xpath it gave the 1\1 matching.
clear
. I'm assuming it's clearing text or something? Does it only appear if there's text present? Or is it always present? Because if you need to perform an action to show the element, maybe that action isn't performed?