Share this page

RunJavaScript<TResult>(String) Method
Runs the given JavaScript code in the frame's context and returns the result.

C# Syntax

    TResult RunJavaScript<TResult>(
       string scriptToRun
    )

Parameters

scriptToRun
  The JavaScript code to run

Type Parameters

TResult
  The type of return value

Return Value

The result of running the JavaScript code converted to TResult

Tips to improve your search results... UFT Developer .NET SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: