The exception is thrown from within phantom js driver (at
org.openqa.selenium.phantomjs.PhantomJSDriverService.findPhantomJS) and
suggests to me that you are using a selenium version which is incompatible
with that version of the driver. Removing the `transitive = false` from
your dependency declaration should pull in the right version.

On Mon, May 22, 2017 at 10:35 AM, <[email protected]> wrote:

> I am on win8.1 using phantomjs-2.1.1-windows.
>
>
> On Monday, May 22, 2017 at 11:32:38 AM UTC+2, [email protected] wrote:
>>
>> I tried with
>>
>> gebVersion = '1.1.1'
>>
>>
>> testCompile("com.codeborne:phantomjsdriver:1.4.2") {
>>     // phantomjs driver pulls in a different selenium version
>>     transitive = false
>> }
>>
>>
>> and got following
>>
>>     geb.driver.DriverCreationException: failed to create driver from
>> callback 'script1495445430407551713159$_run_closure2$_closure24$_clos
>> ure46@6b4fae3c'
>>
>>         Caused by:
>>         java.lang.IllegalAccessError: tried to access class
>> org.openqa.selenium.os.ExecutableFinder from class
>> org.openqa.selenium.phantomjs.PhantomJSDriverService
>>
>>     geb.driver.DriverCreationException: failed to create driver from
>> callback 'script1495445430407551713159$_run_closure2$_closure24$_clos
>> ure46@6b4fae3c'
>>
>>         Caused by:
>>         java.lang.IllegalAccessError: org/openqa/selenium/os/Executa
>> bleFinder
>>
>> com.bechtle.test.functional.specifications.next.hardware.shared.login.Login_TestSpec
>> > Test: Go to CustomerAccountLoginPage FAILED
>>     geb.driver.DriverCreationException: failed to create driver from
>> callback 'script1495445430407551713159$_run_closure2$_closure24$_clos
>> ure46@6b4fae3c'
>>         at geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFac
>> tory.groovy:35)
>>         at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDr
>> iverFactory.groovy:85)
>>         at geb.driver.CachingDriverFactory.getDriver_closure3(CachingDr
>> iverFactory.groovy)
>>         at geb.driver.CachingDriverFactory$SimpleCache.get(CachingDrive
>> rFactory.groovy:32)
>>         at geb.driver.CachingDriverFactory.getDriver(CachingDriverFacto
>> ry.groovy:84)
>>         at geb.Configuration.createDriver(Configuration.groovy:382)
>>         at geb.Configuration.getDriver(Configuration.groovy:371)
>>         at geb.Browser.getDriver(Browser.groovy:111)
>>         at geb.report.PageSourceReporter.getPageSource(PageSourceReport
>> er.groovy:42)
>>         at geb.report.PageSourceReporter.writePageSource(PageSourceRepo
>> rter.groovy:38)
>>         at geb.report.PageSourceReporter.writeReport(PageSourceReporter
>> .groovy:29)
>>         at geb.report.CompositeReporter.writeReport(CompositeReporter.g
>> roovy:31)
>>         at geb.Browser.report(Browser.groovy:927)
>>         at geb.spock.GebReportingSpec.report(GebReportingSpec.groovy:59)
>>         at 
>> com.bechtle.test.functional.specifications.next.hardware.shared.login.Login_TestSpec.Test:
>> Go to CustomerAccountLoginPage(Login_TestSpec.groovy:20)
>>
>>         Caused by:
>>         java.lang.IllegalAccessError: org/openqa/selenium/os/Executa
>> bleFinder
>>             at org.openqa.selenium.phantomjs.
>> PhantomJSDriverService.findPhantomJS(PhantomJSDriverService.java:232)
>>             at org.openqa.selenium.phantomjs.
>> PhantomJSDriverService.createDefaultService(PhantomJSDriverS
>> ervice.java:181)
>>             at script1495445430407551713159$_
>> run_closure2.closure24$_closure46(script14954454304075517131
>> 59.groovy:497)
>>             at script1495445430407551713159$_
>> run_closure2.closure24$_closure46(script1495445430407551713159.groovy)
>>             at geb.driver.CallbackDriverFacto
>> ry.getDriver(CallbackDriverFactory.groovy:29)
>>             ... 14 more
>>
>>
>>
>> On Monday, May 22, 2017 at 11:08:22 AM UTC+2, Marcin Erdmann wrote:
>>>
>>> I don't see why it would not work with 1.4.x. What's the error you're
>>> getting?
>>>
>>> On Mon, May 22, 2017 at 8:52 AM, <[email protected]> wrote:
>>>
>>>> hi,
>>>> should geb 1.x work with com.codeborne:phantomjsdriver:1.4.x? I can
>>>> only get it work with com.codeborne:phantomjsdriver:1.3.0.
>>>> any idea, hint or experience?
>>>> thank you
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Geb User Mailing List" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/geb-user/f0f771f3-9101-4d62-942d-e1f907d0aa63%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/geb-user/f0f771f3-9101-4d62-942d-e1f907d0aa63%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/geb-user/d98c6fde-7a12-4db6-9c34-5457acd4c8d3%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/d98c6fde-7a12-4db6-9c34-5457acd4c8d3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQQtPFfGqLxy%3DaiLsHRGKd-3w%2BcgOEuiQT3EfZLrw8bZqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to