Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
angelominisci committed Oct 10, 2024
1 parent 1300586 commit b5d1421
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,14 @@ public void checkoutPagamento() throws InterruptedException {
continuaBottone.click();

WebTool.waitTime(10);

//Select Nexi
WebElement modificaButton = driver.findElement(By.xpath("//button[@aria-label='Change payment service provider (PSP)']"));
getWebDriverWait(5).withMessage("Il bottone modifica non è cliccabile").until(ExpectedConditions.elementToBeClickable(modificaButton));
modificaButton.click();

WebTool.waitTime(10);
List<WebElement> nexiButton = driver.findElements(By.xpath("//div[contains(text(),'Nexi')]"));
List<WebElement> nexiButton = driver.findElements(By.xpath("//div[contains(text(),'Intesa Sanpaolo S.p.A')]"));
WebTool.waitTime(10);
//getWebDriverWait(10).withMessage("Il bottone Nexi non è cliccabile").until(ExpectedConditions.elementToBeClickable(nexiButton));
if (nexiButton.size()==2){
Expand Down

0 comments on commit b5d1421

Please sign in to comment.