For example:
def getViewport(){
Dimension dim = browser.driver.manage().window().getSize()
}
However after migrated out framework from geb 0.10 to geb 0.12.2
The methods are started giving following exception.
Unable to resolve browser as content for com.qa.module.TestModule@715408d9, or as a property on its Navigator context. Is browser a class you forgot to import?
groovy.lang.MissingPropertyException: Unable to resolve browser as content for com.qa.module.TestModule @715408d9, or as a property on its Navigator context. Is browser a class you forgot to import?
at geb.content.PageContentSupport.propertyMissing(PageContentSupport.groovy:45)
at geb.Module.propertyMissing(Module.groovy:101)
at com.qa.module.TestModule.getViewport(TestModule.groovy:323)
at geb.content.TemplateDerivedPageContent.methodMissing(TemplateDerivedPageContent.groovy:128)
Please provide suggestion on accessing browser or driver object in module.
Thanks
Manoj Joshi
Manoj Joshi
--
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/0e05f50d-504a-4d3c-a11f-84e39c121525%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/CAB06vMARhGTgw8sZamhNWDEgpzhgFrQVttkZAsuvus956JE%3DDA%40mail.gmail.com.