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$_closure46@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$_closure46@6b4fae3c'

        Caused by:
        java.lang.IllegalAccessError: 
org/openqa/selenium/os/ExecutableFinder

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$_closure46@6b4fae3c'
        at 
geb.driver.CallbackDriverFactory.getDriver(CallbackDriverFactory.groovy:35)
        at 
geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy:85)
        at 
geb.driver.CachingDriverFactory.getDriver_closure3(CachingDriverFactory.groovy)
        at 
geb.driver.CachingDriverFactory$SimpleCache.get(CachingDriverFactory.groovy:32)
        at 
geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.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(PageSourceReporter.groovy:42)
        at 
geb.report.PageSourceReporter.writePageSource(PageSourceReporter.groovy:38)
        at 
geb.report.PageSourceReporter.writeReport(PageSourceReporter.groovy:29)
        at 
geb.report.CompositeReporter.writeReport(CompositeReporter.groovy: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/ExecutableFinder
            at 
org.openqa.selenium.phantomjs.PhantomJSDriverService.findPhantomJS(PhantomJSDriverService.java:232)
            at 
org.openqa.selenium.phantomjs.PhantomJSDriverService.createDefaultService(PhantomJSDriverService.java:181)
            at 
script1495445430407551713159$_run_closure2.closure24$_closure46(script1495445430407551713159.groovy:497)
            at 
script1495445430407551713159$_run_closure2.closure24$_closure46(script1495445430407551713159.groovy)
            at 
geb.driver.CallbackDriverFactory.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] <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/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/055fe31d-83d0-4eed-84cf-4eb99c196317%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to