On Thursday, August 1, 2013 10:59:50 AM 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
>



i think u shld use
set obj = description.create
obj("micclass").value = "webedit"
set obj1 = browser(" ").Page(" ").childobjects(obj)


then get the obj1.count (for example20)
try 
obj1(15).highlight
if 15 doesnt work try with other no below "obj1.count"
once u find the correct no i dont think the no are going to change

try this it worked with me 
i didnt have to use index vslue

>  
>

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