‘Running JavaScript in QTP 11
Function funcJavaScript()
'Create Object for Google Page
Set objPage=Browser("name:=Google").Page("title:=Google")
'Setting up Text for Search Box in Google Page
Set objSearchBox =objPage.RunScript("document.getElementsByName('q')(0);")
objSearchBox.Value="QTP 11 Now Supports Java Script"
End Function
No comments:
Post a Comment