Skip to content

Selenium stale Element Error in withFrame(){} in a Module #461

Closed
@Ch0j1n

Description

@Ch0j1n

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions