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

Elements collection inside class with @Frame annotation isn't working #201

Open
lyubenkov opened this issue Apr 12, 2018 · 0 comments
Open

Comments

@lyubenkov
Copy link
Contributor

lyubenkov commented Apr 12, 2018

Method Elements.getListElement(WebElement el) clears up parent property in el by setting it to null.
That's why the @Frame information is lost in the context if there was one, and there is no call to the GetElementModule.getFrameContext(By frame) method.
As a result all elements in declared Elements collection inside iframe class with @frame annotation couldn't be found in DOM.
Parent property should be saved for all elements inside iframe, because it's necessary to switch into frame to work with internal elements using Selenium.

@lyubenkov lyubenkov changed the title Elements collection inside class with @Frame annotation is not working at all Elements collection inside class with @Frame annotation isn't working Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant