Skip to content

Commit

Permalink
Thread Sleep in cam-10 has been fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
TlpAyn committed Apr 20, 2023
1 parent 119552f commit f75213c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/test/java/stepDefinitions/Cam10Steps.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
package stepDefinitions;

import io.cucumber.java.en.*;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import pages.DialogContent;
import pages.LeftNav;
import utilities.GWD;

import java.time.Duration;

public class Cam10Steps {

Expand Down Expand Up @@ -62,13 +68,10 @@ public void verifyBankAccountsError() {

@And("Click Bank Accounts DeleteButton")
public void clickBankAccountsDeleteButton() {
WebDriverWait wait = new WebDriverWait(GWD.getDriver(),Duration.ofSeconds(20));
dg.sendKeysFunction(dg.searchNameInput, userNAme);
dg.clickFunction(dg.searchButton);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
wait.until(ExpectedConditions.numberOfElementsToBe(By.xpath("//fuse-progress-bar/*"), 0));
dg.clickFunction(dg.BankAccountsdeleteButton);
dg.clickFunction(dg.deleteConfirmButton);
}
Expand Down

0 comments on commit f75213c

Please sign in to comment.