All help appreciated!
Yes. Look at EmbedScript and RunScript method of the Browser and the page object
This might be useful with some adjustments. RH is a ReportHandler class I wrote... replace it with your reporting method of choice (e.g. reporter.reportEvent).
<font class="small">Code:</font><hr /><pre>
On error resume next
If isempty(activeBrowser) Then
set activeBrowser = Browser("micClass:=Browser", "CreationTime:=0")
Set browserObject = activeBrowser.Object
returnVal = eval("browserObject.document.script." & valueName)
If err.number <> 0 Then
If err.number = 438 Then
That works great.
You da man!
One more question.
I'm on QTP 10, and I think EmbedScript & RunScript are from QTP 11 only.
Anyone any other ideas on accessing js variable within object with QTP 10?