Most awaited feature for Web application automation is implemented in QTP 11.
Yes, it is Running JavaScript snippets during run-time. It is really helpful to trigger a JavaScript function which is attached to an HTML object.
Code
Dim oPage:Set oPage=Browser("name:=Google").Page("title:=Google") Dim oTxtGoogle:Set oTxtGoogle=oPage.RunScript("document.getElementsByName( 'q')(0);") 'The above line gets DOM object for Google textbox using Javascript. oTxtGoogle.Value="qtp"
Comments(0)