public void auto_setClickElement(String elementPath, String ... elementValue) {
By locator = LocatorBuilder.getBy(elementPath, elementValue);
WebElement element = null;
try {
element = this.auto_getWebElement(locator);
this.auto_setClickElement(element);
} catch (Exception e1) {
try {
element = this.auto_getWebElement(locator);
this.auto_waitForElementVisibility(element);
this.auto_waitElementClickable(element);
this.auto_setClickElement(element);
} catch (ElementNotInteractableException e) {
this.auto_setClickElementJS(element);
LOGGER.info("The element was clicked with JS: "+locator);
} catch (StaleElementReferenceException e) {
this.retryingFindClick(elementPath, elementValue);
}
}
}
Popular Search autoautsettextttr