Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Ch0j1n opened this issue Dec 2, 2016 · 0 comments
Closed

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

Ch0j1n opened this issue Dec 2, 2016 · 0 comments
Assignees
Labels
Bug
Milestone

Comments

@Ch0j1n
Copy link

@Ch0j1n Ch0j1n commented Dec 2, 2016

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.

@erdi erdi added the Bug label Dec 5, 2016
@erdi erdi added this to the 1.1 milestone Dec 5, 2016
@erdi erdi self-assigned this Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.