Forum Discussion
AlexKaras
7 years agoChampion Level 3
Hi 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).
Related Content
- 2 years ago
- 5 years ago
- 6 years ago
Recent Discussions
- 2 days ago