Search code examples
javascriptqtp

Evaluate JavaScript in QTP


Is there a way to evaluate a JavaScript function on a webpage in QTP, assigning the result to a QTP variable.

I'm using QTP version 9.0.


Solution

  • In addition to the link supplied by @Aaron this functionality is built in to QTP 11 as Page.RunScript and Frame.RunScript, QTP 9.0 is pretty old would you consider upgrading?