Skip to content

Commit

Permalink
Add Method
Browse files Browse the repository at this point in the history
  • Loading branch information
angelominisci committed Aug 6, 2024
1 parent 3b1747e commit 024b62f
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,19 @@ public void siCliccaSuAllegatoInTimeline(String xpath) {

}

public void siVerificaLaCliccabilitaSuAllegatoInTimeline(String xpath) {
try {
By allegatoTimeline = By.xpath(xpath);
logger.info(xpath);
getWebDriverWait(10).until(ExpectedConditions.and(ExpectedConditions.visibilityOfElementLocated(allegatoTimeline), ExpectedConditions.elementToBeClickable(allegatoTimeline)));
logger.info("allegato timeline trovato con successo e cliccabile");
} catch (TimeoutException e) {
logger.error("allegato timeline trovato con successo e cliccabile: " + e.getMessage());
Assert.fail("allegato timeline trovato con successo e cliccabile: " + e.getMessage());
}

}

public void checkInvioADomicilioDiPiattaforma(String domicilioDiPiattaforma) {
try {
By invioDomicilioDiPiattaformaBy = By.xpath("//div[contains(span/text(), 'Invio via PEC riuscito') and (//div[contains(p/text(), '" + domicilioDiPiattaforma + "')])]");
Expand Down

0 comments on commit 024b62f

Please sign in to comment.