def evaluate(self, script):
        """
        Evaluate script in page frame.

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

        :param script: The script to evaluate.