Fix raising of WebTabError

This commit is contained in:
Florian Bruhin 2016-07-28 11:13:24 +02:00
parent d87840e254
commit 631109e5eb
2 changed files with 1 additions and 3 deletions

View File

@ -533,5 +533,3 @@ def focus_elem(frame):
"""
elem = frame.findFirstElement(SELECTORS[Group.focus])
return WebElementWrapper(elem)

View File

@ -560,7 +560,7 @@ class WebKitTab(browsertab.AbstractTab):
def find_all_elements(self, selector, *, only_visible=False):
mainframe = self._widget.page().mainFrame()
if mainframe is None:
raise WebTabError("No frame focused!")
raise browsertab.WebTabError("No frame focused!")
elems = []
frames = webelem.get_child_frames(mainframe)