Hello,
Your contents are not written properly.
It should be:
static content = { myModule { module MyModule } }
-- static content = { menu { $("#menu") } }
Best regards,
Pierre
--
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/5ec8b4f3-75d8-421d-b10c-24ad2009a499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/af98e680-fbe8-4434-a76d-7bdcd478f90e%40googlegroups.com.
WebElement element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.name("itemName")));
as well as tried using WaitFor(30){ $('#create-form #item-group input[name=itemName]').displayed }, it gives error that "Element is not currently visible and so may not be interacted with".
Here is stack Trace for #3 issue:
Element is not currently visible and so may not be interacted with Command duration or timeout: 65 milliseconds Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26' System info: host: 'Sushants-MacBook-Pro.local', ip: '192.168.1.2', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10', java.version: '1.8.0_25' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=37.0.2, platform=MAC, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: a1a28182-1fa2-2f43-acca-8413d7167054 org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Command duration or timeout: 65 milliseconds Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26' System info: host: 'Sushants-MacBook-Pro.local', ip: '192.168.1.2', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10', java.version: '1.8.0_25' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=37.0.2, platform=MAC, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}] Session ID: a1a28182-1fa2-2f43-acca-8413d7167054 at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268) at org.openqa.selenium.remote.RemoteWebElement.clear(RemoteWebElement.java:113) at geb.navigator.NonEmptyNavigator.setInputValue(NonEmptyNavigator.groovy:706) at geb.navigator.NonEmptyNavigator.setInputValues_closure42(NonEmptyNavigator.groovy:684) at groovy.lang.Closure.call(Closure.java:423) at groovy.lang.Closure.call(Closure.java:439) at geb.navigator.NonEmptyNavigator.setInputValues(NonEmptyNavigator.groovy:683) at geb.navigator.NonEmptyNavigator.propertyMissing(NonEmptyNavigator.groovy:574) at geb.content.PageContentSupport.propertyMissing(PageContentSupport.groovy:74) at geb.Page.propertyMissing(Page.groovy:77) at geb.Browser.propertyMissing(Browser.groovy:217) at geb.spock.GebSpec.propertyMissing(GebSpec.groovy:62) at AddTabSpec.AddTab friend will pay(AddTabSpec.groovy:21) Caused by: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26' System info: host: 'Sushants-MacBook-Pro.local', ip: '192.168.1.2', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10', java.version: '1.8.0_25' Driver info: driver.version: unknown at <anonymous class>.fxdriver.preconditions.visible(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js:9587) at <anonymous class>.DelayedCommand.prototype.checkPreconditions_(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js:12257) at <anonymous class>.DelayedCommand.prototype.executeInternal_/h(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js:12274) at <anonymous class>.DelayedCommand.prototype.executeInternal_(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js:12279) at <anonymous class>.DelayedCommand.prototype.execute/<(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdr...@googlecode.com/components/command-processor.js:12221)
: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10', java.version: '1.8.0_25' Driver info: driver.version: unknown at <anonymous class>.fxdriver.preconditions.visible(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js:9587) at <anonymous class>.DelayedCommand.prototype.checkPreconditions_(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js:12257) at <anonymous class>.DelayedCommand.prototype.executeInternal_/h(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js:12274) at <anonymous class>.DelayedCommand.prototype.executeInternal_(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js:12279) at <anonymous class>.DelayedCommand.prototype.execute/<(file:///var/folders/sk/4g40y3ld47d6_sdvmsc8n70m0000gn/T/anonymous3647467242040651644webdriver-profile/extensions/fxdri...@googlecode.com/components/command-processor.js:12221)
I want to update the documentation for same. How Java Or any other programming language have proper in depth documentation. Same way I want to update geb document. This way for new people it will help.