1 2 Previous Next 18 Replies Latest reply on Sep 25, 2013 12:54 PM by kgoedert Go to original post
      • 15. Re: Re: drone and graphene error
        kpiwko

        It looks like your trying to inject @Drone DefaultSelenium, which is Selenium 1 as explained in the message.

        Graphene2 works on top of WebDriver, which is completely different technology than DefaultSelenium.

        1 of 1 people found this helpful
        • 16. Re: Re: drone and graphene error
          kgoedert

          Your are right. That was one of the problems. I fixed and now I have

           

          java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.chrome.ChromeDriver(Capabilities): java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://code.google.com/p/chromedriver/downloads/list

           

          if I set the browser to chrome. Do I need the chrome driver? And I have this:

           

          java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.phantomjs.PhantomJSDriver(DriverService,Capabilities): java.lang.NoClassDefFoundError: org/apache/http/entity/ContentType

           

          If I set the browser to phantomjs

          • 17. Re: Re: drone and graphene error
            kpiwko

            Yes, for ChromeDriver you need chromedriver binary. Just download it from the link and set <property name="chromeDriverBinary">/path/to/download/one</property in arquillian.xml next to browser type. Or just set the system property via -D.

             

            As for the phantomjs, can you check you have your test method marked as @RunAsClient ? Or @Deployment(testable=false) ? Just post the whole stacktrace, it is difficult to figure that out from first two rows ;-)

            • 18. Re: Re: drone and graphene error
              kgoedert

              I got it working with phantomjs by adding

              <dependency>

                <groupId>org.apache.httpcomponents</groupId>

                <artifactId>httpcore</artifactId>

                <version>4.2.3</version>

                </dependency>

               

              For chrome the configuration also works now.

               

              Thanks

              1 2 Previous Next