Hi Swapna, Vasu is right. Instesd of using "IsNull(gPostPrice)" as a condition of your If statement, you should use [gPostPrice=""]
Regards, Manish On Tue, Jul 7, 2009 at 2:42 PM, vasu sree <[email protected]> wrote: > Hi Swapna, > > can check the below code,,,,, i hope that it can help you. > > gPostPrice = Browser("Market Reports - Price").Page("Market Reports - > Price").WebEdit("priceEntry. priceEntryLines[3].poste").GetROProperty > ("value") > msgbox gPostPrice > If gPostPrice="" Then > msgbox("entering if") > Else > msgbox("entering else") > End If > > > Regards, > Vasu > > On Tue, Jun 30, 2009 at 4:29 AM, Swapna <[email protected]> wrote: > >> >> Hi >> >> I am working on verifying the value of the object which is null. >> >> The code as below: >> >> gPostPrice = Browser("Market Reports - Price").Page("Market Reports - >> Price").WebEdit("priceEntry.priceEntryLines[3].poste").GetROProperty >> ("value") >> msgbox gPostPrice >> If IsNull(gPostPrice) Then >> msgbox("entering if") >> Else >> msgbox("entering else") >> End If >> >> The value of the object is BLANK so I considered as Null (which I may >> be wrong) >> >> Now, when I put the if condition, the msgbox with "entering else" is >> displayed. >> >> What am I doing wrong? Please help.......... >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
