1 Reply Latest reply on Dec 15, 2012 5:11 PM by John Ament

    Warp - Class Not Found when deploying

    John Ament Master

      I'm receiving a class not found exception when running a warp test class.

       

      Caused by: java.lang.ClassNotFoundException: org.jboss.arquillian.warp.Activity

       

      When I call the following steps:

       

      Warp.initiate(new SaveActivity(driver)).inspect(new PeopleInspector());

       

      My activity:

       

      public class SaveActivity implements Activity {

          private WebDriver driver;

          public SaveActivity(WebDriver driver) {

              this.driver = driver;

          }

          @Override

          public void perform() {

              driver.findElement(By.name("editPersonForm:saveButton")).click();   

          }

      }

       

      and inspector:

       

      public class PeopleInspector extends Inspection {

       

       

          @EJB

          private PeopleDAO dao;

       

       

          @AfterServlet

          public void testAfterServlet() {

              List<People> people = dao.findAllPeople();

              boolean found = false;

              for (People p : people) {

                  if (p.getEmail().equals("jane.doe@anyplace.com")) {

                      found = true;

                  }

              }

              assertTrue(found);

          }

      }