As far as I can tell you are getting an SSL certificate error. This will be
something specific  to your environment, not related to Geb, possobly
related to WebDriver. The only reason I can think of for you gettig this
error is that your FF instalation is custom or the set of standard
certificates has been tinkered with on your machine.

With regards to an example project, you can check out
github.com/geb/geb-example-gradle. It is very simple, configures gecko and
chrome driver executables, uses very recent versions of them and runs on my
MacBook out of the box.



On Tue, 12 Sep 2017 at 19:30, JR <[email protected]> wrote:

> I downloaded the Gecko driver and configured it. I am now getting the
> exception shown below. Still not getting past go. I can't down grade my
> browser for security and policy reasons. I really would like to get this
> working so if anyone has a current setup that works on OS X any info would
> be appreciated.
>
> Connected to the target VM, address: '127.0.0.1:50663', transport:
> 'socket'
> 1505236516031 geckodriver INFO geckodriver 0.18.0
> 1505236516039 geckodriver INFO Listening on 127.0.0.1:40037
> 1505236517682 geckodriver::marionette INFO Starting browser
> /Applications/Firefox.app/Contents/MacOS/firefox-bin with args
> ["-marionette"]
> 1505236518179 addons.xpi WARN Error parsing extensions state:
> [Exception... "Component returned failure code: 0x80520012
> (NS_ERROR_FILE_NOT_FOUND) [amIAddonManagerStartup.readStartupData]"
>  nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)"  location: "JS frame ::
> resource://gre/modules/addons/XPIProvider.jsm :: loadExtensionState :: line
> 1596"  data: no] Stack trace:
> loadExtensionState()@resource://gre/modules/addons/XPIProvider.jsm:1596 <
> getInstallState()@resource://gre/modules/addons/XPIProvider.jsm:1631 <
> checkForChanges()@resource://gre/modules/addons/XPIProvider.jsm:3152 <
> startup()@resource://gre/modules/addons/XPIProvider.jsm:2246 <
> callProvider()@resource://gre/modules/AddonManager.jsm:271 <
> _startProvider()@resource://gre/modules/AddonManager.jsm:741 <
> startup()@resource://gre/modules/AddonManager.jsm:908 <
> startup()@resource://gre/modules/AddonManager.jsm:3122 <
> observe()@jar:file:///Applications/Firefox.app/Contents/Resources/omni.ja!/components/addonManager.js:65
> 1505236518551 Marionette INFO Enabled via --marionette
> 1505236520157 Marionette INFO Listening on port 50697
> JavaScript error: chrome://marionette/content/server.js, line 337:
> NS_ERROR_SOCKET_ADDRESS_IN_USE: Component returned failure code: 0x804b0036
> (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.initSpecialConnection]
> 2017-09-12 12:15:20.224 plugin-container[19994:2679852] *** CFMessagePort:
> bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
> 0xa33b, name = 'com.apple.tsm.portname'
> See /usr/include/servers/bootstrap_defs.h for the error codes.
> 2017-09-12 12:15:20.227 plugin-container[19994:2679852] *** CFMessagePort:
> bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port =
> 0xa603, name = 'com.apple.CFPasteboardClient'
> See /usr/include/servers/bootstrap_defs.h for the error codes.
> 1505236520262 Marionette DEBUG loaded listener.js
> JavaScript error: , line 0: TypeError: NetworkError when attempting to
> fetch resource.
> 1505236520380 addons.productaddons WARN Failed downloading XML, status:
> 0, reason: error
> Sep 12, 2017 12:15:20 PM org.openqa.selenium.remote.ProtocolHandshake
> createSession
> INFO: Detected dialect: W3C
> 1505236520805 Marionette DEBUG Received DOM event "beforeunload" for
> "about:blank"
> 1505236521048 Marionette DEBUG Received DOM event "beforeunload" for
> "about:blank"
> 1505236521050 Marionette DEBUG Received DOM event "pagehide" for
> "about:blank"
> 1505236521050 Marionette DEBUG Received DOM event "unload" for
> "about:blank"
> 1505236521115 Marionette DEBUG Received DOM event "DOMContentLoaded" for
> "about:certerror?e=nssBadCert&u=https%3A//
> www.google.com/&s=badStsCert&c=UTF-8&f=regular&d=www.google.com%20uses%20an%20invalid%20security%20certificate.%0A%0AThe%20certificate%20is%20not%20trusted%20because%20the%20issuer%20certificate%20is%20unknown.%0AThe%20server%20might%20not%20be%20sending%20the%20appropriate%20intermediate%20certificates.%0AAn%20additional%20root%20certificate%20may%20need%20to%20be%20imported.%0A%0AError%20code%3A%20%3Ca%20id%3D%22errorCode%22%20title%3D%22SEC_ERROR_UNKNOWN_ISSUER%22%3ESEC_ERROR_UNKNOWN_ISSUER%3C/a%3E%0A
> "
> Exception in thread "main" org.openqa.selenium.WebDriverException:
> Build info: version: '3.5.3', revision: 'a88d25fe6b', time:
> '2017-08-29T12:42:44.417Z'
> System info: host: 'My---MBP', ip: '192.168.0.5', os.name: 'Mac OS X',
> os.arch: 'x86_64', os.version: '10.12.6', java.version: '1.8.0_92'
> Driver info: org.openqa.selenium.firefox.FirefoxDriver
> Capabilities
> [{moz:profile=/var/folders/gv/_cx4q31913lf1d2n41zfycrr0000gp/T/rust_mozprofile.0Q2I2NWRBYbX,
> rotatable=false, timeouts={implicit=0, pageLoad=300000, script=30000},
> pageLoadStrategy=normal, platform=MAC, specificationLevel=0,
> moz:accessibilityChecks=false, acceptInsecureCerts=false,
> browserVersion=55.0.3, platformVersion=16.7.0, moz:processID=19993,
> browserName=firefox, javascriptEnabled=true, platformName=MAC}]
> Session ID: 522d1c71-7b88-b44a-9d41-9360b20821f0
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:185)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
> at
> org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
> at
> org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
> at
> org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
> at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:370)
> at org.openqa.selenium.WebDriver$get.call(Unknown Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
> at geb.Browser.go(Browser.groovy:511)
> at geb.Browser$go.callCurrent(Unknown Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
> at geb.Browser.go(Browser.groovy:476)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
> at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
> at
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
> at Main$_run_closure1.doCall(Main.groovy:10)
> at Main$_run_closure1.doCall(Main.groovy)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
> at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
> at
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
> at geb.Browser.drive(Browser.groovy:1054)
> at geb.Browser$drive$0.callStatic(Unknown Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:169)
> at geb.Browser.drive(Browser.groovy:1024)
> at geb.Browser$drive.call(Unknown Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
> at Main.run(Main.groovy:8)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1076)
> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906)
> at
> org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:848)
> at
> org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:831)
> at
> org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:407)
> at org.codehaus.groovy.runtime.InvokerHelper$runScript.call(Unknown Source)
> at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
> at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
> at Main.main(Main.groovy)
> 1505236521254 addons.productaddons WARN Failed downloading via XHR,
> status: 0, reason: error
> 1505236521302 Marionette INFO New connections will no longer be accepted
> [GFX1-]: Receive IPC close with reason=AbnormalShutdown
> [Child 19994] WARNING: pipe error: Broken pipe: file
> /builds/slave/m-rel-m64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_posix.cc,
> line 709
> Disconnected from the target VM, address: '127.0.0.1:50663', transport:
> 'socket'
>
>
>
> --
> 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/26e72d4d-3da8-46a7-b6d8-eca469e45d78%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/26e72d4d-3da8-46a7-b6d8-eca469e45d78%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%2B52dQTHB%2B7pqBfHQQaqQPBmnWvHXf%3D3YsAbAHADLLH%2BhTcWdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to