Forum Discussion
AlexKaras
Champion Level 1
8 years agoHi Mayur,
> Tried with Xpath but Click method is not showing for it.
This is one of many XPath disadvantages in TestComplete's world: depending on whether or not it was possible to match the object found by XPath with the object from TestComplete's objects tree (the one displayed in the Object Browser), XPath search will return either TestComplete's wrapping object or the native DOM one. .Click() is a method provided by TestComplete and is not accessible for the native DOM object.
Two options are possible:
a) Use TestComplete-provided search functions (.FindXXX() ones), which is preferable; or
b) Try to use native .click() method instead of .Click() one (JScript is case-sensitive language).