lundi 2 novembre 2015

Getting error while running test ng - FAILED CONFIGURATION: @BeforeClass setBaseURL

I am trying to run and getting FAILED CONFIGURATION: @BeforeClass setBaseURL Please help. What's going wrong Here's the code......

 public class GuestCheckoutTest {

            public WebDriver driver ;
            public String baseURL = "http://www.google.com";

        @BeforeClass
        public void setBaseURL(){
        driver = new FirefoxDriver();
        driver.get(baseURL);
        }

        @Test(priority= 0)
        void EmailPasswordEntry() {
            // Entering Email and Password values

            driver.findElement(By.id("loginRegister")).click();
            WebElement email = driver.findElement(By.id("head_username"));
            email.clear();
            email.sendKeys("dhruv.bhatnagar@timesinternet.in");


        }
    }

Error: FAILED CONFIGURATION: @BeforeClass setBaseURL

java.lang.NoClassDefFoundError: org/json/JSONObject

Aucun commentaire:

Enregistrer un commentaire