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
JSHandle#executionContext() was removed in v17, but with it also the ability to get the Frame or Page from a handle was removed. Previously one could use handle.executionContext().frame(), but now there is no way to get the Frame anymore. I would propose adding a JSHandle#frame() method to get the Frame from an element.
Note: ElementHandle#contentFrame() is for <iframe>s, this does not return the Frame that an element is on or a JSHandle is part of.
The text was updated successfully, but these errors were encountered:
@stevenwdv JSHandles could come from service workers or workers and, thus, might not have a frame associated with them. In general, if you have a JS handle you should be able to do :
JSHandle#executionContext()
was removed in v17, but with it also the ability to get the Frame or Page from a handle was removed. Previously one could usehandle.executionContext().frame()
, but now there is no way to get the Frame anymore. I would propose adding aJSHandle#frame()
method to get the Frame from an element.Note:
ElementHandle#contentFrame()
is for<iframe>
s, this does not return the Frame that an element is on or a JSHandle is part of.The text was updated successfully, but these errors were encountered: