Marcin,

Thank you for releasing the new version of geb. 

When I change my geb version from 0.10.0 to 1.0-rc-1, I'm getting the 
following error in my geb tests when they attempt to click a button: 
Method click() can only be called on single element navigators but it was 
called on a navigator with size 2. Please use the spread operator to call 
this method on all elements of this navigator or change the selector used 
to create this navigator to only match a single element.

If I pause test execution in the debugger, I can see that there are 2 
context elements defined for the navigator. I also see 2 elements when 
using the older version of geb, though it seems to be able to handle this. 

Here are the dependency related sections of my build.gradle file: 

ext {
    // The drivers we want to use
    drivers = ["firefox" /*, "chrome", "phantomJs" */]

    ext {
        groovyVersion = '2.4.1'
        gebVersion = '0.10.0'
//        seleniumVersion = '2.43.1' // needed to work with phantom JS, per 
https://github.com/geb/geb-example-gradle/pull/19
        seleniumVersion = '2.45.0'
        // note: need to update from 2.43.1 to prevent firefox from hanging on 
startup with a 'server not found' error
        chromeDriverVersion = '2.10'
        phantomJsVersion = '1.9.7'
    }
}

...

dependencies {
    // If using Spock, need to depend on geb-spock
    testCompile "org.gebish:geb-spock:$gebVersion"
    testCompile("org.spockframework:spock-core:1.0-groovy-2.4") {
        exclude group: "org.codehaus.groovy"
    }
    testCompile "org.codehaus.groovy:groovy-all:$groovyVersion"

    // If using JUnit, need to depend on geb-junit (3 or 4)
    testCompile "org.gebish:geb-junit4:$gebVersion"

    // Drivers
    testCompile 
"org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
    testCompile 
"org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
    testCompile("com.github.detro.ghostdriver:phantomjsdriver:1.1.0") {
        // phantomjs driver pulls in a different selenium version
        transitive = false
    }
    testCompile "org.seleniumhq.selenium:selenium-support:$seleniumVersion"
}


Let me know what other info would be useful to provide to troubleshoot 
this. 


On Sunday, October 2, 2016 at 2:04:12 PM UTC-5, Marcin Erdmann wrote:
>
> Hi everybody,
>
> Geb 1.0-rc-1 has been published almost a week ago. So far no issues have 
> been reported but I would like to make sure that this is because none have 
> been found by you, the users, and not because nobody tried it. The target 
> is to release 1.0 final next weekend if no blocking issues are reported.
>
> Can people who updated their projects to use Geb 1.0-rc-1 either 
> successfully or not please speak out?
>
> Thanks,
> Marcin Erdmann
>

-- 
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/dfd0f17d-f95d-4add-8bd4-a394d036a2e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to