Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Null value of the object
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Swapna,
there are 2 ways how you can handle this.
Method1:
Code:
gPostPrice = Browser("Market Reports - Price").Page("Market Reports - Price").WebEdit("priceEntry.priceEntryLines[3].poste").GetROProperty("value")
if gPostPrice=Empty Then
   msgbox "pass"
else
msgbox "fail"
endif
Method2:
Code:
If gPostPrice=vbnullstring Then
   msgbox "pass"
else
msgbox "fail"
endif

Let me know if you need any more info on this.
Thanks,
QTPKing
Thanks,
SUpputuri
Reply


Messages In This Thread
Null value of the object - by swapna_gupta08 - 06-30-2009, 04:12 AM
RE: Null value of the object - by QTPian - 06-30-2009, 12:21 PM
RE: Null value of the object - by supputuri - 07-08-2009, 07:04 PM
RE: Null value of the object - by pun555 - 02-20-2012, 11:54 PM
RE: Null value of the object - by inborntester - 02-21-2012, 11:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to remove null values in array venkatesh9032 0 2,887 02-19-2014, 06:51 PM
Last Post: venkatesh9032
  GetRoProperties("enabled") returns null? RandomGrin 3 7,416 02-28-2013, 11:27 PM
Last Post: RandomGrin
  getElementByid("myObhectId") return null??? qtptester 3 7,095 02-01-2013, 09:44 AM
Last Post: ravi.gajul
  Blank(null) cells within Datatable cocojava 1 5,519 12-20-2010, 07:59 PM
Last Post: PrabhatN
  Null value in a row in Data table cocojava 1 4,136 10-08-2010, 11:20 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)