As the exceptions suggests, there is no drive() method on the driver. You
need to construct a geb.Browser instance and configure it with the driver
you created:

def config = new geb.Configuration(driver: { driver })
def browser =  new geb.Browser(config)

browser.drive {
    ...
}

On Wed, Sep 21, 2016 at 8:25 AM, <mande...@redhat.com> wrote:

> Try with selenium version 3.0.0-beta3. Also check if you're having the
>> latest gecko driver too. The capability marionette is not present in 2.53.
>>
>
> I tried and it failed. Gist of what I did: https://gist.github.com/
> maxandersen/31c93efdbf9b011a8bf56a88e10290ac
>
> error: Caught: groovy.lang.MissingMethodException: No signature of
> method: org.openqa.selenium.firefox.FirefoxDriver.drive() is applicable
> for argument types: (test$_run_closure1) values:
> [test$_run_closure1@6e9c413e]
>
> Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), 
> wait(), close(), quit(), kill()
> groovy.lang.MissingMethodException: No signature of method: 
> org.openqa.selenium.firefox.FirefoxDriver.drive() is applicable for argument 
> types: (test$_run_closure1) values: [test$_run_closure1@6e9c413e]
> Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), 
> wait(), close(), quit(), kill()
>
>     at test.run(test.groovy:18)
>
> is there maybe a different version of geb to try out ?
>
>
>
>>
>> And just a FYI from the geckodriver readme:
>> https://github.com/mozilla/geckodriver/blob/master/README.md
>> Marionette and geckodriver are not yet feature complete. This means it
>> does not yet offer full conformance with the WebDriver standard
>> <https://w3c.github.io/webdriver/webdriver-spec.html> or complete
>> compatibility with Selenium <http://www.seleniumhq.org/>.
>>
>
> Yes, i'm very much aware of there being limits but I don't believe i'm
> doing anything remotely advanced here - just trying to get a basic url to
> open up to start.
>
> /max
>
>>
>>
>> On Mon, Sep 19, 2016 at 1:18 PM, Max Andersen <mand...@redhat.com> wrote:
>>
>>> here is the exact snippet i'm trying to run:
>>>
>>> @Grapes([
>>>     @Grab("org.gebish:geb-core:0.13.1"),
>>>     @Grab("org.seleniumhq.selenium:selenium-firefox-driver:2.53.1"),
>>>     @Grab("org.seleniumhq.selenium:selenium-support:2.53.1")
>>> ])
>>> import geb.Browser
>>>
>>> import geb.Module
>>> import geb.Page
>>> import org.openqa.selenium.remote.DesiredCapabilities
>>> import org.openqa.selenium.firefox.FirefoxDriver
>>>
>>>
>>> DesiredCapabilities capabilities = DesiredCapabilities.firefox()
>>> capabilities.setCapability("marionette", true)
>>> driver = new FirefoxDriver(capabilities)
>>>
>>> driver.drive {
>>>    go "http://gebish.org";
>>>
>>>     assert title == "Geb - Very Groovy Browser Automation"
>>>
>>>     $("#sidebar .sidemenu a", text: "jQuery-like API").click()
>>>
>>>     assert $("#main h1")*.text() == ["Navigating Content", "Form Control
>>> Shortcuts"]
>>>     assert $("#sidebar .sidemenu a", text: "jQuery-like
>>> API").parent().hasClass("selected")
>>> }
>>>
>>>
>>> On Mon, Sep 19, 2016 at 7:13 PM, Raviteja Lokineni <
>>> raviteja...@gmail.com> wrote:
>>>
>>>> What are your dependencies?
>>>>
>>>> On Mon, Sep 19, 2016 at 11:58 AM, <mand...@redhat.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I tried using Geb but it keeps failing for me and I reckon the reason
>>>>> is i'm on OSX with Firefox 48 installed. I downloaded and installed
>>>>> geckodriver/marionette and made it available in my PATH but to no avail.
>>>>>
>>>>> Anyone with some pointers on how to get Geb running with Firefox 48 on
>>>>> OSX ?
>>>>>
>>>>> Thank you,
>>>>> Max
>>>>>
>>>>> --
>>>>> 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 geb-user+u...@googlegroups.com.
>>>>> To post to this group, send email to geb-...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/geb-user/e14ffdf1-8a90-411
>>>>> 7-880a-5dd89e07f4d4%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/geb-user/e14ffdf1-8a90-4117-880a-5dd89e07f4d4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Raviteja Lokineni* | Business Intelligence Developer
>>>> TD Ameritrade
>>>>
>>>> E: raviteja...@gmail.com
>>>>
>>>> [image: View Raviteja Lokineni's profile on LinkedIn]
>>>> <http://in.linkedin.com/in/ravitejalokineni>
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Geb User Mailing List" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>> pic/geb-user/k8wWk-eTYkE/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> geb-user+u...@googlegroups.com.
>>>> To post to this group, send email to geb-...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/geb-user/CAJpE9rVLPJEd9JN8XZAcpULrsS2g-pJ3AUdrB0PGqdbCYD
>>>> V_Tg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/geb-user/CAJpE9rVLPJEd9JN8XZAcpULrsS2g-pJ3AUdrB0PGqdbCYDV_Tg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> /max
>>> https://about.me/maxandersen
>>>
>>> --
>>> 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 geb-user+u...@googlegroups.com.
>>> To post to this group, send email to geb-...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/geb-user/CAHL%3D7Vta5M-XavT7C6CS7-c9ZrmkeBRkSrWx-m3xLoRF
>>> hO6_ew%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/geb-user/CAHL%3D7Vta5M-XavT7C6CS7-c9ZrmkeBRkSrWx-m3xLoRFhO6_ew%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Raviteja Lokineni* | Business Intelligence Developer
>> TD Ameritrade
>>
>> E: raviteja...@gmail.com
>>
>> [image: View Raviteja Lokineni's profile on LinkedIn]
>> <http://in.linkedin.com/in/ravitejalokineni>
>>
>> --
> 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 geb-user+unsubscr...@googlegroups.com.
> To post to this group, send email to geb-user@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/geb-user/3c19fac3-4546-4939-9caf-2a6027f30e39%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/3c19fac3-4546-4939-9caf-2a6027f30e39%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 geb-user+unsubscr...@googlegroups.com.
To post to this group, send email to geb-user@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQT9uk8PXy2Ua3wH0qjJo%2B01%2BRVx0idz%3DEvT6L5iKmQ0eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to