Forum Discussion

samirc23's avatar
samirc23
Contributor
12 years ago

Exists method doesn't work

Hi,

I tried to use exists method in test complete to verify text on webpage like welcome to xyz. so it was like Object.exsits and when i run it, it gives following error message. Object doesnot support this property or method. Please find attached screenshot

5 Replies

  • hlalumiere's avatar
    hlalumiere
    Regular Contributor
    How exactly do you expect us to help you with a code problem without us seeing the code in the first place?
  • murugans1011's avatar
    murugans1011
    Regular Contributor
    u can only able to use list of properties and methods supported by that object ...when u type object.(dot) it shows all methods

    post the error code
  • Hi Murugan S, thanks for reply but i did check out that after obj . (dot) and list of all methods get displayed and exists method also get displayed but when i use it. i get error message "  Object doesnot support this property or method".



    any solution to this issue?
  • murugans1011's avatar
    murugans1011
    Regular Contributor
    try to use if method

    "if object.Exists then"

    if it is a window then use the following

    "if process.WaitWindow().Exists .then"


    or else post the error code here