I want to use a HTML form to collect QTP user input (which server to run the test on, password etc.)
I prepared an interface in html and vb script to get form data and have it triggered through a submit button, and I wanted to get submit data via DOM interface into QTP.
In the html interface I defined a submit button and some input boxes and they all work fine in the IE browser.
I can activate window as in the code below, but the last line of the code gives error
hWnd = oBrw.GetROProperty("hwnd")
Window("hwnd:=" & hWnd).Activate
oBrw.object.Document.parentWindow.userAction = ""
getting this error
Object doesn't support this property or method: 'oBrw.Object.Document.parentWindow.userAction'
Actually I can get default values from boxes at startup, but I want values only after user populates the boxes and clicks the submit button. I hope someone help me on this.
I look serious because I am serious.
Set x = Browser().Page().object.parentWindow
Then check x.userAction and see where you get the error, when getting x or x.userAction
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Tarun I get the error when getting x.UserAction
I tried your
Set x = oBrw.Object.Document.ParentWindow
No problem for the x but when I add x.UserAction gives the same error.
Object doesn't support this property or method: 'x.UserAction'
userAction is not a supported property for this object. See the below link for supported properties