@ Sia,
the below statement returns a string
you can not check for the existance of the string using .Exist method. This can be used only for objects. Hence you are getting the error as object required for the statement.
If you want to check if the string found or not, you should use INstr function. Refere to qtp help.
Regards,
Ankesh
the below statement returns a string
Code:
A = Browser("Justdial").Page("Justdial").WebElement(DataTable("categories", dtGlobalSheet)).GetROProperty("innertext")
you can not check for the existance of the string using .Exist method. This can be used only for objects. Hence you are getting the error as object required for the statement.
If you want to check if the string found or not, you should use INstr function. Refere to qtp help.
Regards,
Ankesh