При нажатии на элемент в браузере Chrome в selenium-testng:
org.openqa.selenium.WebDriverException: unknown error: document.getBoxObjectFor is not a function
(Session info: chrome=73.0.3683.103)
(Driver info: chromedriver=2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
отображается как ошибка
Я пробовал:
wait.until(ExpectedConditions.stalenessOf(element));
Пробный код:
public void clickHERE(String deal) throws Throwable
{
driver.findElement(By.xpath(HERE)).click();
driver.findElement(By.xpath(enterDeal)).sendKeys(deal);
driver.findElement(By.xpath(searchButtonDCP)).click();
scrollToElement(driver, nextTabDealInfo);
driver.findElement(By.xpath(nextTabDealInfo)).click();
}
Для первой строки кода:
driver.findElement(By.xpath(HERE)).click();
в вышеуказанной функции, драйвер должен щелкнуть и перейти к следующей странице.