5 Replies Latest reply on Oct 13, 2014 9:46 AM by cilf

    Unable to retrieve Drone Instance within 60 seconds

    anemdhana

      Hi,

      in my arquillian test, I am trying to inject WebDriver.

       

      @Drone

      WebDriver firstWindow;

       

      here is extension defined arquillian.xml,

       

      <extension qualifier="webdriver">

          <!-- PhantomJS will be our default browser if no profile is specified-->

              <property name="browser">phantomjs</property>

              <!-- <property name="browserSessionReuse">false</property>

              <property name="ensureCleanSession">true</property> -->

          </extension>

       

      Unit test is giving this exception.

      java.lang.RuntimeException: Unable to retrieve Drone Instance within 60 seconds

        at org.jboss.arquillian.drone.impl.DroneInstanceCreator.createDroneInstance(DroneInstanceCreator.java:89)

       

      Appreciate if you suggest me whether I missed anything.

       

      Here is my simple junit test.

      @RunWith(Arquillian.class)

      public class LoginScreenGrapheneTest {

       

        @Deployment(testable = false)

        public static WebArchive createDeployment() {

        return ArchiveProvider.createWebArchive("rootView", RootView.class, ParameterizedNavigationUI.class);

        }

       

       

        @Drone

        private WebDriver browser;

       

       

        @ArquillianResource

        private URL deploymentUrl;

       

        @Test

        public void testLoginScreen() {

        System.out.println(browser);

        }

      }