'Run the given javascript source.
Args:
source: The source to run as a string.
Return:
The javascript return value.'

def run(self, source):

    assert self.webview.settings().testAttribute(QWebSettings.JavascriptEnabled)
    return self.webview.page().mainFrame().evaluateJavaScript(source)
