epam / epam/JDI

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

Open
#201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
145
Forks
106
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.