Skip to content

Commit

Permalink
* fix
Browse files Browse the repository at this point in the history
  • Loading branch information
azhansultan committed Aug 16, 2024
1 parent 0cf35c2 commit e1433b3
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,19 +222,15 @@ public void inserireCodiceDelega(String codiceDelega) {
}

}

public void clickNotificheDelegatePF() {
try {
getWebDriverWait(10).until(ExpectedConditions.visibilityOf(this.sideItemNotificheButton));
sideItemNotificheButton.click();
By notificheDelegateButton = By.id("side-item-Gaio Giulio Cesare");
this.getWebDriverWait(10).until(ExpectedConditions.elementToBeClickable(notificheDelegateButton));
this.js().executeScript("arguments[0].click()", this.element(notificheDelegateButton));
logger.info("Si clicca correttamente sulla voce notifiche delegate");
} catch (TimeoutException e) {
logger.error("Non si clicca correttamente sulla voce notifiche delegate con errore:" + e.getMessage());
Assert.fail("Non si clicca correttamente sulla voce notifiche delegate con errore" + e.getMessage());
}

getWebDriverWait(10).until(ExpectedConditions.visibilityOf(this.sideItemNotificheButton));
sideItemNotificheButton.click();
By notificheDelegateButton = By.id("side-item-Gaio Giulio Cesare");
this.getWebDriverWait(10).until(ExpectedConditions.elementToBeClickable(notificheDelegateButton));
this.js().executeScript("arguments[0].click()", this.element(notificheDelegateButton));
logger.info("Si clicca correttamente sulla voce notifiche delegate");

}

public String getTextCodiceSbagliato() {
Expand Down

0 comments on commit e1433b3

Please sign in to comment.