MCPcopy
hub / github.com/scrapinghub/splash / evaljs

Method evaljs

splash/qtrender_lua.py:792–799  ·  view source on GitHub ↗
(self, snippet)

Source from the content-addressed store, hash-verified

790
791 @command()
792 def evaljs(self, snippet):
793 try:
794 res = self.tab.evaljs(snippet)
795 return self.expose_html_elements(res)
796 except JsError as e:
797 info = e.args[0]
798 info['type'] = ScriptError.JS_ERROR
799 raise ScriptError(info)
800
801 @command()
802 def runjs(self, snippet):

Callers 15

__call__Method · 0.45
existsMethod · 0.45
node_propertyMethod · 0.45
set_node_propertyMethod · 0.45
get_node_styleMethod · 0.45
set_node_styleMethod · 0.45
callMethod · 0.45
_get_dimensionsMethod · 0.45
stylesMethod · 0.45
boundsMethod · 0.45
visibleMethod · 0.45
textMethod · 0.45

Calls 2

expose_html_elementsMethod · 0.95
ScriptErrorClass · 0.90

Tested by

no test coverage detected