Hi,
If I have 10 items in my listboxitem, is it possible to get the index # from it?
For example, if I click the last item, the code looks like the following one.
listboxitem[9]: Is it possible for me to add code and get 9 here?
Thanks
Ray
public ArtOfTest.WebAii.Silverlight.UI.ListBoxItem ListboxItem
{
get
{
return Get<ArtOfTest.WebAii.Silverlight.UI.ListBoxItem>("XamlTag=listbox", "automationid=acctTree", "|", "XamlPath=/grid[0]/border[0]/scrollviewer[automationid=ScrollViewer]/border[0]/grid[0]/scrollcontentpresenter[name=ScrollContentPresenter]/itemspresenter[0]/virtualizingstackpanel[0]/listboxitem[9]");
}
}
Hi, I have a question.
Sometimes my test cases pass, but sometimes my test cases fail due to the following error.
System.TimeoutException: Wait for condition has timed out
I believe it is the network speed issue. I would like to customize the error message, but I find it seems not possible for me to do it. Is it possible for me to know which step or line throws this exception? I can increase the sleep time.
Thanks,
Ray