Forum Discussion

varun_masuraha's avatar
varun_masuraha
Contributor
9 years ago

Not able to use Find methods on HTML property whose value is “NaN” (not a number)

Hi,

 

I'm using TestComplete for Java based Web Application in desktop browser. I get zero results when I try Find methods (in script) for a TextBox whose "valueAsNumber" property value is "NaN" (not a number)

 

Could someone suggest how can I search 'NaN' value in Find methods ?

 

regards,

Varun

2 Replies

  • Gan's avatar
    Gan
    Occasional Contributor

    you can use this "propertyvalue=GetPropertyValue(objectname,"PropertyName")", then you can perform any action that particuler object.

    like propertyvalue=GetPropertyValue(objectname,"HTML property"). i.e propertyvalue="NaN". I think it is useful for that issue.

    • TanyaYatskovska's avatar
      TanyaYatskovska
      SmartBear Alumni (Retired)

      Hi Varun_masuraha,

       

      I’m pretty sure that an empty edit box will have contentText = “” in TestComplete. Thus, you can use an empty string as a search criterion in the Find method.