QtWebEngine: Fix tab passed to WebEngineElement
This commit is contained in:
parent
a06dcc7f0b
commit
73210fb87c
@ -326,7 +326,7 @@ class WebEngineElements(browsertab.AbstractElements):
|
||||
"""
|
||||
elems = []
|
||||
for js_elem in js_elems:
|
||||
elem = webengineelem.WebEngineElement(js_elem, tab=self)
|
||||
elem = webengineelem.WebEngineElement(js_elem, tab=self._tab)
|
||||
elems.append(elem)
|
||||
callback(elems)
|
||||
|
||||
@ -342,7 +342,7 @@ class WebEngineElements(browsertab.AbstractElements):
|
||||
if js_elem is None:
|
||||
callback(None)
|
||||
else:
|
||||
elem = webengineelem.WebEngineElement(js_elem, tab=self)
|
||||
elem = webengineelem.WebEngineElement(js_elem, tab=self._tab)
|
||||
callback(elem)
|
||||
|
||||
def find_css(self, selector, callback, *, only_visible=False):
|
||||
|
Loading…
Reference in New Issue
Block a user