-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PN - 9247: fix xpath domicilio speciale
- Loading branch information
1 parent
495bb2b
commit f39e890
Showing
1 changed file
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,13 +291,11 @@ public void checkInvioRaccomandataSemplice() { | |
|
||
public void checkInvioADomicilioSpeciale(String domicilioSpeciale) { | ||
try { | ||
By invioDomicilioSpecialeBy = By.xpath("//div[p[contains(text(), '[email protected]')] and span[contains(text(), 'Invio via PEC riuscito')]]\n"); | ||
By invioDomicilioSpecialeBy = By.xpath("//div[contains(span/text(), 'Invio via PEC riuscito') and (//div[contains(p/text(), '" + domicilioSpeciale + "')])]"); | ||
getWebDriverWait(10).withMessage("Non si visualizza l'invio della notifica al domicilio speciale nella timeline").until(ExpectedConditions.visibilityOfElementLocated(invioDomicilioSpecialeBy)); | ||
} catch (TimeoutException e) { | ||
logger.error("L'invio della notifica al domicilio speciale indicato non viene effettuato con errore: " + e.getMessage()); | ||
Assert.fail("L'invio della notifica al domicilio speciale indicato non viene effettuato con errore: " + e.getMessage()); | ||
} | ||
} | ||
//p[text()='" + domicilioSpeciale + "'] | ||
//div[contains(p, '" + domicilioSpeciale + "') and contains(span, 'Invio via PEC riuscito')] | ||
} |