Skip to content

Commit

Permalink
wait until text visible x3
Browse files Browse the repository at this point in the history
  • Loading branch information
VladPiatachenko committed Oct 18, 2024
1 parent df794a0 commit 3764a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/fluffy/universe/e2e/Profilee2eTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ void SuccessfulEditProfileTest() throws IOException {
driver.findElement(By.xpath("/html/body/main/div/form/div[8]/button")).click();
System.out.println("~~~~~~~~~~~~url!~~~~~~~~~~~");
System.out.println(driver.getCurrentUrl());
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("/html/body/div[2]/div/div[1]/h2")));
//WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
//wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("/html/body/div[2]/div/div[1]/h2")));
System.out.println("~~~~~~~~~~~~alert!~~~~~~~~~~~");
System.out.println(driver.findElement(By.xpath("/html/body/div[2]/div/div[1]/h2")).getText());
//assertEquals(driver.findElement(By.xpath("/html/body/div[2]/div/div[1]/h2")).getText(),"Congratulations!");
Expand Down

0 comments on commit 3764a6b

Please sign in to comment.