Closed
Description
Given i have a Module (Module A) , within which i lookup content of an iframe (Frame A).
For the content of Frame A i create a PageObejct (PageDescribingFrame).
class ModuleA extends Module {
static content = {
frame { $('frame#id') }
}
withFrame(frame, PageDescribingFrame){
browser.page.elementInFrame.text()
}
}
If I do not add browser.page
before elementInFrame
I get a Selenium stale Element Error.
Link to the corresponding thread in Geb User Mailing List.