I have a responsive site, and I would like to highlight the problem that parts of my page template are dumped from the main content on the page:
trait DesktopPage { static content = { header { $('nav', id:'nav-container') } } } trait MobilePage { // other stuff } trait HomePage { static url = '' static at = { title == 'My Site' } } class DesktopHomePage extends Page implements DesktopPage, HomePage {}
However, the Geb runtime does not seem to collect static description blocks from properties, but acts as if they were not present.
Is it possible to compose problems like this implicitly using traits with Geb? If not, is there any syntax that will allow me to extract information from implemented features? HomePage.at not allowed.
source share