<a href="/lightning/n/******__Country" title="Country" tabindex="0" draggable="false" aria-describedby="operationId-17" class="slds-context-bar__label-action dndItem">
<span class="slds-truncate">Country</span></a>
Я получил xpath как
WebElement tabName = driver.findElement(By.xpath("//a[contains(@href,'Country')]"));
Мне нужно нажать на ссылку Страна
Я пробовал следующие варианты, но ни один не работает
1) driver.findElement(By.xpath("//a[contains(@href,'Country') and @title='Country']")).click();
2) Actions actions = new Actions((WebDriver) driver.getWebDriver());
actions.moveToElement(tabName).click().perform();
3) ((JavascriptExecutor) driver).executeScript("arguments[0].click();", tabName);
waitForSeconds(5);
* 1009Я получаю вызов целевого исключениямне, как перейти по ссылке href?