Use:-
Without OR..
Window("name:=.*MyFlight.*").Click
Window("name:=.*MyFlight.*").Type "John"
Window("name:=.*MyFlight.*").Type  micReturn 
Window("name:=.*MyFlight.*").Type  micTab 
Window("name:=.*MyFlight.*").Type "hp"
Window("name:=.*MyFlight.*").Type  micReturn 
Window("name:=.*MyFlight.*").Click 203,447
Window("name:=.*MyFlight.*")Move 296,267
Window("name:=.*MyFlight.*").Close

Using OR
Window("HP MyFlight Sample Application_5").Click 314,283
Window("HP MyFlight Sample Application_5").Type "John"
Window("HP MyFlight Sample Application_5").Type  micReturn 
Window("HP MyFlight Sample Application_5").Type  micTab 
Window("HP MyFlight Sample Application_5").Type "hp"
Window("HP MyFlight Sample Application_5").Type  micReturn 
Window("HP MyFlight Sample Application_5").Click 203,447
Window("HP MyFlight Sample Application_6").Move 296,267
Window("HP MyFlight Sample Application_6").Close

Using OR:-
>
>
> Window("HP MyFlight Sample Application.*").Click 314,283 // Also change 
> the logical name in the OR also. Open OR and click on window property 
> value. instead of _5 or _6 change it to .*
> Window("HP MyFlight Sample Application.*").Type "John"
> Window("HP MyFlight Sample Application.*").Type  micReturn 
> Window("HP MyFlight Sample Application.*").Type  micTab 
> Window("HP MyFlight Sample Application.*").Type "hp"
> Window("HP MyFlight Sample Application.*").Type  micReturn 
> Window("HP MyFlight Sample Application.*").Click 203,447
> Window("HP MyFlight Sample Application.*").Move 296,267
> Window("HP MyFlight Sample Application.*").Close
>
> Run Error - Step
>
> Cannot identify the object "HP MyFlight Sample Application_5" (of class 
> Window).
> Verify that this object's properties match an object currently displayed in 
> your application.
>
>
> Thanks,
>
> Pavi.
>
>

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