Forum Discussion
Philip_Baird
12 years agoCommunity Expert
Hi Veronica, you are attempting to use methods for a Test Complete object against an IXMLDOMDocument
The following line in your example returns an instance of IXMLDOMDocument:
Set Doc = Sys.OleObject("Msxml2.DOMDocument.6.0")
You then attempt the following, which fails as the Method FindChildByXPath does not exist on IXMLDOMDocument
Doc.FindChildByXPath(xpath1, False)
You will need to use the IXMLDOMDocument Methods as defined in the IXMLDOMDocument/DOMDocument Members documentation.
Regards,
Phil Baird
The following line in your example returns an instance of IXMLDOMDocument:
Set Doc = Sys.OleObject("Msxml2.DOMDocument.6.0")
You then attempt the following, which fails as the Method FindChildByXPath does not exist on IXMLDOMDocument
Doc.FindChildByXPath(xpath1, False)
You will need to use the IXMLDOMDocument Methods as defined in the IXMLDOMDocument/DOMDocument Members documentation.
Regards,
Phil Baird