You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Method
Elements.getListElement(WebElement el)
clears up parent property inel
by setting it tonull
.That's why the
@Frame
information is lost in the context if there was one, and there is no call to theGetElementModule.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.
The text was updated successfully, but these errors were encountered: