HI,
Thanks very much for the solution....
On Sunday, August 11, 2013 12:05:37 AM UTC+5:30, udayanem wrote:
> Hi Silpha,
>
> Your first approach didnt work as you put more "".
> Try below:
> WpfWindow("winmame").WpfEdit("wpftypenmae:=edit","index:=[1-99]").Highlight
>
> Your second approach didnt work as indexed descriptions cannot be used
> with ChildObjects(as you did in Dynamic DP)
> Where as you can use the index as in above statement(Static DP).
>
> Where as you can use the logic described by rajaselvan in the below reply.
>
> Thanks,
> Uday
> QTP \ UFT Videos <https://www.youtube.com/user/AnemUday/videos>
>
> On Thursday, 1 August 2013 10:59:50 UTC+5:30, shilpa gupta wrote:
>>
>> HI,
>> pls see the below query:
>> in the application, a text box is visible after performing some
>> operation. the index number of text box is not constant and sometime it is
>> 1 or 2 or 3..so on.
>> my query is how to pass the index number in this case.
>>
>> to work on this text box i am using below:
>>
>> approach 1
>> WpfWindow("winmame").WpfEdit("wpftypenmae:=edit","index:="[1-99]"").Highlight
>>
>> - not working
>>
>> approach 2
>> Set objedit = Description.Create
>> objedit("wpftypename").Value = "edit"
>> objedit("Index").Value = "[1-99]"
>> Set chldobj = WpfWindow("winmane").ChildObjects(objedit)
>> n=chldobj.Count
>> - not working
>>
>> pls reply
>>
>>
>
--
--
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/groups/opt_out.