QtWebEngine: Implement webelem.classes
This commit is contained in:
parent
522049132b
commit
fca37abf55
@ -71,8 +71,7 @@ class WebEngineElement(webelem.AbstractWebElement):
|
|||||||
|
|
||||||
def classes(self):
|
def classes(self):
|
||||||
"""Get a list of classes assigned to this element."""
|
"""Get a list of classes assigned to this element."""
|
||||||
log.stub()
|
return self._js_dict['class_name'].split()
|
||||||
return []
|
|
||||||
|
|
||||||
def tag_name(self):
|
def tag_name(self):
|
||||||
"""Get the tag name of this element.
|
"""Get the tag name of this element.
|
||||||
|
@ -36,6 +36,7 @@ window._qutebrowser.webelem = (function() {
|
|||||||
"text": elem.text,
|
"text": elem.text,
|
||||||
"tag_name": elem.tagName,
|
"tag_name": elem.tagName,
|
||||||
"outer_xml": elem.outerHTML,
|
"outer_xml": elem.outerHTML,
|
||||||
|
"class_name": elem.className,
|
||||||
"rects": [], // Gets filled up later
|
"rects": [], // Gets filled up later
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -139,7 +139,6 @@ Feature: Using hints
|
|||||||
# The actual check is already done above
|
# The actual check is already done above
|
||||||
Then no crash should happen
|
Then no crash should happen
|
||||||
|
|
||||||
@qtwebengine_todo: webelem.classes is not implemented yet
|
|
||||||
Scenario: Hinting with ACE editor
|
Scenario: Hinting with ACE editor
|
||||||
When I open data/hints/ace/ace.html
|
When I open data/hints/ace/ace.html
|
||||||
And I hint with args "inputs" and follow a
|
And I hint with args "inputs" and follow a
|
||||||
|
Loading…
Reference in New Issue
Block a user