Bhaarat, Which version of Grails are you trying to integrate Geb into? That particular example project is not maintained anymore - it is set up using Grails 2 which is EOL now and Geb is integrated with Grails 3 out of the box, see http://docs.grails.org/latest/guide/testing.html#functionalTesting. I will be adding a deprecation notice to readme of that project so that it's more visible what the status of it is.
Also, as Brian suggests, you probably have a newer version of FF installed on your machine than what is supported by the particular Selenium version used by that example project. You can upgrade Selenium version but be aware that you will also need to install and setup Gecko driver if you do so ( https://github.com/mozilla/geckodriver) as Firefox driver in Selenium 3.x requires Gecko driver. Another possibly easier but not really sustainable option is to downgrade Firefox to 46 if you just want to quickly see these tests running. Cheers, Marcin On Tue, Aug 1, 2017 at 9:21 PM, Brian Kotek <[email protected]> wrote: > Looks like you need to bump the Selenium version to 3.4 or higher. > https://www.google.com/search?q=Failed+to+allocate+ > communication+port+for+com.apple.CFPasteboardClient > > On Tue, Aug 1, 2017 at 2:30 PM, Bhaarat Sharma <[email protected]> > wrote: > >> I am trying to integrate Geb into my Grails application. As an example, I >> started looking into this example https://github.com/geb >> /geb-example-grails >> >> However, this example does not work. >> >> When I run it on my OSX 10.10.5 (Yosemite) I get an error stacktrace: >> >> ``` >> 2017-08-01 14:27:00.918 plugin-container[49184:6684020] *** >> CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission >> denied', port = 0x8f43, name = 'com.apple.tsm.portname' >> See /usr/include/servers/bootstrap_defs.h for the error codes. >> 2017-08-01 14:27:00.919 plugin-container[49184:6684020] *** >> CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission >> denied', port = 0x442f, name = 'com.apple.CFPasteboardClient' >> See /usr/include/servers/bootstrap_defs.h for the error codes. >> 2017-08-01 14:27:00.919 plugin-container[49184:6684020] Failed to >> allocate communication port for com.apple.CFPasteboardClient; this is >> likely due to sandbox restrictions >> | Error at org.openqa.selenium.firefox.in >> ternal.NewProfileExtensionConnection.start(NewProfileExtensi >> onConnection.java:113) >> | Error at org.openqa.selenium.firefox.Fi >> refoxDriver.startClient(FirefoxDriver.java:271) >> | Error at org.openqa.selenium.remote.Rem >> oteWebDriver.<init>(RemoteWebDriver.java:119) >> | Error at org.openqa.selenium.firefox.Fi >> refoxDriver.<init>(FirefoxDriver.java:216) >> | Error at org.openqa.selenium.firefox.Fi >> refoxDriver.<init>(FirefoxDriver.java:211) >> ``` >> >> -- >> 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/ms >> gid/geb-user/b6d52441-243d-48e3-a260-36bd7f89fdc5%40googlegroups.com >> <https://groups.google.com/d/msgid/geb-user/b6d52441-243d-48e3-a260-36bd7f89fdc5%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/CAB06vMCdZg_KW2MEEzqEeUCpwx3sfqSnwS2WLE% > 3D1zqtorggSew%40mail.gmail.com > <https://groups.google.com/d/msgid/geb-user/CAB06vMCdZg_KW2MEEzqEeUCpwx3sfqSnwS2WLE%3D1zqtorggSew%40mail.gmail.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%2B52dQQ1JR%3DV%2BDseWWxaKKxtZyTRPX6qpugtjQz4O3hWgAHCDA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
