Hi All,

Passing the Index values through DP is not advisable, So we can count
and we can use ..

Regards,
Sedhu


On Sat, Aug 3, 2013 at 8:22 PM, Anish Pillai <[email protected]>wrote:

> Hi Shilpa,
>
> the solution to this would depend upon how your application behaves.. If I
> assume that the text box appears somewhere at the end in the page, then you
> can do a count on the number of text boxes before and after you perform the
> operation.. That way you can loop through the text box list and find the
> one you want (maybe it always has the highest index number??)..
>
> There might be some other solution also but it again depends upon how your
> application behaves..
>
>
> *
> cheers,
>  a n i s h
>
> [QTP Framework 
> Tutorials]<http://www.automationrepository.com/2012/03/qtp-framework-types-an-introduction/>|
>  [QTP
> Blogs] <http://www.automationrepository.com/qtp-blogs/>
>
> **
> [Subscribe to get new posts in your 
> Inbox]<http://feedburner.google.com/fb/a/mailverify?uri=automationrepository/feeds>
> *
>
>
> On Thu, Aug 1, 2013 at 10:59 AM, shilpa gupta 
> <[email protected]>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.
>>
>>
>>
>
>
>
> --
> Regards,
> Anish Pillai
> My QTP Blog <http://automationrepository.blogspot.com>
>
> --
> --
> 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.
>
>
>

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


Reply via email to