3

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.

Fergal
  • 5,213
  • 6
  • 35
  • 44

1 Answers1

2

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?

Community
  • 1
  • 1
Motti
  • 110,860
  • 49
  • 189
  • 262
  • Thanks. I believe the customer is planning an upgrade soon but in the meantime I'm stuck with 9.0. Such is life. – Fergal Nov 10 '10 at 22:55