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?

Google Groups | Manoj Joshi | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Getting missing property exception for accessing browser object in module.

    Google Groups | 1 year ago | Manoj Joshi
    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?

    Root Cause Analysis

    1. 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()
    2. Geb Core
      Module.propertyMissing
      1. geb.content.PageContentSupport.propertyMissing(PageContentSupport.groovy:45)
      2. geb.Module.propertyMissing(Module.groovy:101)
      2 frames
    3. com.qa.module
      TestModule.getViewport
      1. com.qa.module.TestModule.getViewport(TestModule.groovy:323)
      1 frame
    4. Geb Core
      TemplateDerivedPageContent.methodMissing
      1. geb.content.TemplateDerivedPageContent.methodMissing(TemplateDerivedPageContent.groovy:128)
      1 frame