Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
object required 'A' error
#2
Solved: 11 Years, 6 Months, 2 Weeks ago
@ Sia,

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
Reply


Messages In This Thread
object required 'A' error - by sia sharma - 08-21-2012, 04:22 PM
RE: object required 'A' error - by Ankesh - 08-21-2012, 04:47 PM
RE: object required 'A' error - by sree.85 - 08-23-2012, 10:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Intermitent "Object not visible" error erodpr 5 3,752 01-14-2016, 10:55 AM
Last Post: vinod123
  Unable to identify "Authentication Required" Dialog shaunysj 2 3,388 08-04-2015, 12:55 PM
Last Post: venkatesh9032
  ERROR : Object reference not set to an instance of an object. Suyashxp 2 7,390 12-30-2014, 11:32 AM
Last Post: ursprasadp
  code required for the following scenarios krithikaachari 0 2,328 09-27-2014, 01:00 AM
Last Post: krithikaachari
  object required shipu 1 4,066 01-16-2014, 08:11 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)