Executes JavaScript code in the page and returns the value of the pageFunction invocation.
pageFunction
''
Promise<any>