Google: DOM
http://www.w3schools.com/dom/default.asp
http://msdn.microsoft.com/en-us/library/aa468547.aspx

Google: COM Object vbscript

On Mon, Jul 18, 2011 at 9:36 PM, Thejaswi V <[email protected]> wrote:

> Hi,
>
> Please explain me following script. Please let me know how to write these
> types of scripts (any help files).
>
>  var_Object  = btnEle.InnerHTML
>        Set xmlDoc = CreateObject("MSXML.DOMDocument")
>                var_Object = "<Root>" & replace(var_Object,"TSNS:","") &
> "</Root>"
>        xmlDoc.LoadXML(Trim(var_Object))
>                Set nodelist = xmlDoc.SelectNodes("Root/Tab")
>                For i = 0 to nodelist.Length - 1
>                        If Trim(strInput) = nodelist.item(i).text Then
>                                selInd = i
>                                Exit For
>                        End If
>                Next
>                btnEle.SelectedIndex = selInd
>                btnEle.fireevent "onclick"
>                'btnEle.Click
>
> Thanks,
> Th
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to