code: def evaluate(self, script):
          
          if WEBENGINE:
              return self.dom.runJavaScript("{}".format(script))
          else:
              return self.dom.evaluateJavaScript("{}".format(script))
docs: Evaluate script in page frame.
  
          :param script: The script to evaluate.