I tested on my local QTP, the "WpfList.Select "item name"" is Ok.

1. I think you can try to use "WpfList.Select #index" to instead the "item
name"
    For instance, "WpfList.Select 0" <-- this statement will select the
first item in the standard WPF List.

2. It maybe related to the item name. You can try to use  "print
WpfWindow("").WpfList("").GetROProperty("all items")" to check the Item
name is correct.

3. Another workaround is the native .Object method.
   For instance, "WpfWindow("").WpfList("").Object.SelectedIndex = 1" <--
this statment will select the first item in the list.

4. "Type" method is a good workaround for this case as well.


On Sun, Nov 25, 2012 at 11:13 AM, Sanketh <[email protected]> wrote:

> WPF mostly require custom controls to be built..
>
> Try a different method eg: instead of select try "type"
>
> Regards,
> Sanketh ( from my phone )
>
>
> On 25-Nov-2012, at 18:10, Gireesh G <[email protected]> wrote:
>
> Hi
>
> i am Facing a issue in QTP11 while selecting wpfList item, it is not
> selecting any item and thoroughing an error object reference not set
>
> WpfWindow("xyz").WpfList("abc").Select "test"
>
> any one please help solving this problem
>
> Thanks
> Gireesh
>
> --
> 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]>
> [email protected]
> To unsubscribe from this group, send email to
>  <[email protected]>
> [email protected]
> For more options, visit this group at
>  <http://groups.google.com/group/MercuryQTP?hl=en>
> http://groups.google.com/group/MercuryQTP?hl=en
>
>  --
> 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
"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