Hi Sarika,

Make sure that the value (Rows in Flight table "20262   DEN   10:12 AM
LON   05:23 PM   AA     $112.20"   ) is included in OR . (or) u can use
GetTOProperty for winlist. Try the below mentioned script and let me know if
it works

*"window("Flight Reservation").Dialog("Flights
Table").WinList("From").GetTOProperty(selection)"*

Thanks,
Rama

On 8/30/08, bharath sangu <[EMAIL PROTECTED]> wrote:
>
> Humm..
>
> Do you have same Denver and London in Flight From and Flight To parameters
> while running the script ?
>
>
>
> On 8/29/08, Sarika Pore <[EMAIL PROTECTED]> wrote:
>>
>> Bharath,
>>
>> The value is the same in my script as I selected it from the list while
>> recording.
>>
>> Thanks.
>>
>> On Fri, Aug 29, 2008 at 4:02 PM, bharath sangu <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi Sarika,
>>>
>>> Make sure that the value "20262   DEN   10:12 AM   LON   05:23 PM
>>> AA     $112.20"  you have in script is exactly matching to the value in the
>>> application.
>>>
>>> Even mismatch of spaces in between the text results error.
>>>
>>> Try it and let me know if it works.
>>>
>>> Thanks,
>>> Bharath
>>>
>>>
>>>
>>>
>>>   On 8/29/08, Sarika Pore <[EMAIL PROTECTED]> wrote:
>>>
>>>>   Hi Dmitry,
>>>>
>>>> Thanks for helping me out.
>>>>
>>>> The values in the Flights table listbox are :
>>>>
>>>> 20253   DEN   08:12 AM   LON   03:23 PM   AA     $112.20
>>>> 20262   DEN   10:12 AM   LON   05:23 PM   AA     $112.20
>>>>
>>>> As per the code I am selecting a fixed value from this list i.e."20262
>>>> DEN   10:12 AM   LON   05:23 PM   AA     $112.20" so there is no
>>>> question of selecting a different value than the values which are there in
>>>> the listbox.
>>>>
>>>> Let me know if I did not understand your point.
>>>>
>>>> Thanks.
>>>>
>>>> On Fri, Aug 29, 2008 at 3:05 PM, Dmitry Motevich <[EMAIL PROTECTED]>wrote:
>>>>
>>>>> Hello, Sarika.
>>>>>
>>>>> The warning message is clear enough:
>>>>> *"Cannot identify the specified item of the object. Confirm that the
>>>>> specified item is included in the object's item collection."*
>>>>>
>>>>>
>>>>> So, let's investugate it...
>>>>>
>>>>>    1. What's the problem with your code?
>>>>>    The warning message answers exactly:* "Cannot identify the
>>>>>    specified item of the object."*
>>>>>    For example, this can happen if your combobox contains values
>>>>>    "abc", "def", "ghi" and you are trying to selecet non-existant value, 
>>>>> for
>>>>>    example "xyz". I think, you've caught the idea...
>>>>>
>>>>>    2. What to do?
>>>>>    Again, the warning message answers exactly:* "Confirm that the
>>>>>    specified item is included in the object's item collection."*
>>>>>    So, you have to check whether a combobox contains the value you
>>>>>    want to select.
>>>>>
>>>>>
>>>>> So, I recommend to send us the list of all values containing in a
>>>>> combobox to find the root cause of the issue.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Aug 29, 2008 at 10:37 PM, Sarika Pore <[EMAIL PROTECTED]>wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> While running my test I am facing a warning as "Cannot identify the
>>>>>> specified item of the object. Confirm that the specified item is 
>>>>>> included in
>>>>>> the object's item collection."
>>>>>>
>>>>>> Scenario : The object is a Winlist.If you go to flight reservation
>>>>>> window and click on Flight button you can see this winlist.I hard coded 
>>>>>> the
>>>>>> value I select from the list and the code is  :
>>>>>>
>>>>>> OptionalStep.Window("Flight Reservation").Dialog("Flights
>>>>>> Table").WinList("From").Select "20262   DEN   10:12 AM   LON   05:23 PM
>>>>>> AA     $112.20"
>>>>>>
>>>>>>  I can locate this object from my OR too.Following are the properties
>>>>>> I am using to identify the object :
>>>>>>
>>>>>> Native Class : ListBox
>>>>>> Selection : 20.*
>>>>>>
>>>>>> Can anyone please tell me what is going wrong in this scenario ? Which
>>>>>> Item of this object is not getting identified ?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Dmitry Motevich,
>>>>> http://motevich.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sarika
>>>>
>>>>
>>
>>
>> --
>> Sarika
>>
>> >>
>>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "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
-~----------~----~----~----~------~----~------~--~---

Reply via email to