Exception in thread "main" java.lang.IllegalStateException

+1 vote
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();
}
}
Jan 16 in Selenium by taruna
• 130 points
394 views

1 answer to this question.

0 votes
answered Mar 17 by Sirajul
• 52,930 points

Related Questions In Selenium

0 votes
0 answers
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
2,594 views
0 votes
1 answer
0 votes
1 answer

What is the role of TestNG & JUnit frameworks in Selenium?

Well TestNG and JUnit are test frameworks ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,710 points
641 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,870 points
2,047 views
0 votes
1 answer

Exception in thread "main" java.lang.IllegalStateException

Your Query is similar to https://www.edureka.co/community/5617 ...READ MORE

answered Apr 13 in Selenium by Sirajul
• 52,930 points
74 views
+2 votes
1 answer

Error occurred during initialization of boot layer java.lang.module.FindException: Module Selenium not found

This might probably be coz while creating ...READ MORE

answered Nov 27, 2019 in Selenium by Sirajul
• 52,930 points
4,346 views