package util.page.springapplication;

import org.openqa.selenium.WebDriver;

import util.page.Page;
import static org.junit.Assert.assertTrue;

public class SpringApplicationMainPage extends Page {

	public SpringApplicationMainPage(WebDriver driver) {
		super(driver);
		driver.get("http://localhost:8080/");
	}

	public void checkPage() {
		assertTrue(driver.getPageSource().contains("Greetings from Spring Boot!"));
	}
}

@@ -31,16 +31,55 @@
 ation;%0A%0A
+import java.util.concurrent.TimeUnit;%0A%0A
 import o
@@ -342,16 +342,282 @@
 080/%22);%0A
+%09%09%0A%09%09int nbTries =1;%0A%09%09//springboot%0A%09%09while(driver.getPageSource().contains(%22404%22) && nbTries%3C4) %7B%0A%09%09%09try %7B%0A%09%09%09%09TimeUnit.SECONDS.sleep(2);%0A%09%09%09%7D catch (InterruptedException e) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%7D%0A%09%09%09driver.get(%22http://localhost:8080/%22);%0A%09%09%09nbTries++;%0A%09%09%7D%0A
 %09%7D%0A%0A%09pub

add retry on spring boo application test