package Program;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class AlertInSelfServe {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\taruna.malik\\Downloads\\Driver\\chromedriver_win32 (3).exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(3, TimeUnit.SECONDS);
driver.get("https://stg.myconcerto.accenture.com/portals/selfserve/Pages/StartProject.aspx");
driver.findElement(By.className("btnNew btnStyle btn-primary btnNext")).click();
Thread.sleep(3000);
driver.switchTo().alert().accept();
}
}