original_docstring: 
          Executes function on an element which matches selector.
  
          :param selector: an element selector
          :param function: a JavaScript function to be executed (e.g. "element => element.value")
          :return: the return value of the function
          :raise CrawlerNotRunningError: if the crawler is not running
          :raise NoSuchElementError: if there is no element matching selector
          
docstring: Executes function on an element which matches selector.
docstring_tokens: Executes function on an element which matches selector .
code: def evaluate(self, selector: str, function: str) -> Any:
          """
          Executes function on an element which matches selector.
  
          :param selector: an element selector
          :param function: a JavaScript function to be executed (e.g. "element => element.value")
          :return: the return value of the function
          :raise CrawlerNotRunningError: if the crawler is not running
          :raise NoSuchElementError: if there is no element matching selector
          """
  
          self._check_if_crawler_running()
  
          try:
              return syncer.sync(self._page.querySelectorEval(selector, function))
          except ElementHandleError:
              raise NoSuchElementError(selector)
code_tokens: def evaluate ( self , selector : str , function : str ) -> Any : self . _check_if_crawler_running ( ) try : return syncer . sync ( self . _page . querySelectorEval ( selector , function ) ) except ElementHandleError : raise NoSuchElementError ( selector )
short_docstring: Executes function on an element which matches selector.
short_docstring_tokens: Executes function on an element which matches selector .
comment: """
          Executes function on an element which matches selector.
  
          :param selector: an element selector
          :param function: a JavaScript function to be executed (e.g. "element => element.value")
          :return: the return value of the function
          :raise CrawlerNotRunningError: if the crawler is not running
          :raise NoSuchElementError: if there is no element matching selector
          """