Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8964461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:35:44+00:00 2026-06-15T16:35:44+00:00

I am trying to find out the difference between geb.driver option against geb.env. I

  • 0

I am trying to find out the difference between geb.driver option against geb.env.

I could not find any concrete documentation on them. I could understand that geb.env is similar to grails.env except, geb env’s are defined in GebConfig.groovy.

Then, why do we need geb.driver. More confusing stuff is my functional test cases are working fine if I specify geb.driver but getting error when I use geb.env.

Cannot find window: _PPIdentityWindow_ 
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01' 
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.5', java.version: '1.6.0_35' 
Driver info: driver.version: unknown 
org.openqa.selenium.NoSuchWindowException: Cannot find window: _PPIdentityWindow_ 
Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 22:18:01' 
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.7.5', java.version: '1.6.0_35' 
Driver info: driver.version: unknown 
        at org.openqa.selenium.htmlunit.HtmlUnitDriver$HtmlUnitTargetLocator.window(HtmlUnitDriver.java:943) 
        at geb.Browser.switchToWindow(Browser.groovy:458) 
        at geb.Browser.withWindow(Browser.groovy:470) 
        at geb.spock.GebSpec.methodMissing(GebSpec.groovy:51) 

Any help is greatly appretiated. I have asked the same question in grails user mailing list too.

http://grails.1312388.n4.nabble.com/Difference-between-geb-driver-and-geb-env-td4637641.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:35:45+00:00Added an answer on June 15, 2026 at 4:35 pm

    When it comes to docs, geb.driver is described here and geb.env is described here.

    The difference is that you can with geb.driver you can only specify which driver to use whereas with geb.env you can specify which environment to use and then specify any environment specific configuration, i.e. base url, waiting, reports dir, and also the driver if you wish.

    The stacktrace seems to have to do with HtmlUnit driver and not Firefox driver. I can see in your mail to the list that you specify HtmlUnit driver as the default and firefox driver wasn’t picked up for whatever reason even though you used geb.env=firefox and there is a configuration for that environment in your GebConfig.groovy. Three reasons I can think of are:

    • you havn’t specified a dependency on firefox driver jar in BuildConfig.groovy
    • you have forgotten to import FirefoxDriver class in your GebConfig.groovy
    • you specified geb.env property in wrong spot in your command – you have to specify it straight after grails (i.e. grails -Denv.geb=firefox test functional:) otherwise it won’t get picked up

    In the future if you have Geb specific questions you should consider posting them to Geb mailing list instead of Grails mailing list, you’re more likely to get an answer there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to find out the difference between Apache Tomcat variables - CATALINA_OPTS
I have been trying to find out what the difference is between the IS
I am trying to find out what the difference between packet loss and packet
I am trying to find out about the performance difference between normal multithreading and
I'm trying to find out the difference between using one colon : and two
I'm trying to find out the difference between a thread and a handler. Does
I am trying to find out if an instance of an application (not vb.net)
I am trying to understand what the difference is between string.find and string.match in
I am trying to find the difference between the following two sets: A =
Could anyone find a difference between 1st overload and required function? If I comment

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.