Hi,

Text property was not working because there was no value displayed when u 
spy the object. check the unique property and write the code then it will 
work.

Regards,
Anil

On Friday, January 9, 2015 at 11:59:30 AM UTC+5:30, aparnadharthi reddy 
wrote:
>
> Thank you anil your code working fine.
> Can i know reason why text property is not working for button in 
> calculator application.
>
> On Fri, Jan 9, 2015 at 10:44 AM, Anil Kumar V <[email protected] 
> <javascript:>> wrote:
>
>> Hi Aparna,
>>
>> Check the below code
>> window("text:=Calculator").Activate
>> window("text:=Calculator").winbutton("nativeclass:=Button","window 
>> id:=81").Click
>> window("text:=Calculator").winbutton("nativeclass:=Button","window 
>> id:=132").Click
>>
>> window("text:=Calculator").winbutton("nativeclass:=Button","window 
>> id:=93").Click
>> 'window("text:=Calculator").winbutton("text:=+","window 
>> id:=92","x:=174","y:=220").Click 'Add three properties
>>
>> window("text:=Calculator").winbutton("nativeclass:=Button","window 
>> id:=135").Click
>> window("text:=Calculator").winbutton("nativeclass:=Button","window 
>> id:=121").Click
>>
>> Regards,
>> Anil Kumar
>>
>>
>> On Thursday, January 8, 2015 at 4:26:28 PM UTC+5:30, aparnadharthi reddy 
>> wrote:
>>>
>>> Hi,
>>>
>>> When i write script using static descriptive programming for calculator 
>>> application to add two number facing problem to click addition button(+)
>>>
>>>
>>> window("text:=Calculator").Activate
>>> window("text:=Calculator").winbutton("text:=C").Click
>>> window("text:=Calculator").winbutton("text:=2").Click
>>>
>>> window("text:=Calculator").winbutton("text:=+").Click
>>> 'window("text:=Calculator").winbutton("text:=+","window 
>>> id:=92","x:=174","y:=220").Click 'Add three properties
>>>
>>> window("text:=Calculator").winbutton("text:=5").Click
>>> window("text:=Calculator").winbutton("text:==").Click
>>>  
>>>
>>>
>>>
>>> Regards
>>> Aparna
>>>  
>>  -- 
>> -- 
>> 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] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Regards
> Aparna
>  

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to