This is a migrated thread and some comments may be shown as answers.

Get All Invisible Elements

3 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 27 Sep 2011, 02:08 PM
Hello.

How can I get all invisible elements with a spicified type?
There are few hundreds <DataGridRow> elements under scrollbar. and only 9 is visible.
Silverlight Spy and WebAii return only 9(if I found with "....Find.AllByType<DataGridRow>().Count).

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 27 Sep 2011, 05:20 PM
Hi Anton,

The issue is that Silverlight virtualizes data in containers, such as your grid. This means the Silverlight visual tree only contains the data necessary to render the UI, which in your case is 9 at a time.

You'll have to scan what is currently in the Silverlight visual tree, scroll the grid by one page, and scan again. Here is an example on how to do that with a Listbox. 

Best wishes,
Anthony
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
alina
Top achievements
Rank 1
answered on 26 Nov 2013, 02:44 PM
Hi

I'm having the same problem that is mentioned here.
Can I have access to the example from this link http://www.telerik.com/automated-testing-tools/error-404.aspx?aspxerrorpath=/automated-testing-tools/support/documentation/user-guide/knowledge-base/silverlight/select-listbox-item-by-text.aspx (that is attached to this topic) ?

Thank you,
Alina
0
Velin Koychev
Telerik team
answered on 29 Nov 2013, 12:01 PM
Hi Alina,

This is the correct link that you can use - http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/silverlight/select-listbox-item-by-text.aspx

Let me know if you need any additional assistance. 

Regards,
Velin Koychev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Anton
Top achievements
Rank 1
Answers by
Anthony
Telerik team
alina
Top achievements
Rank 1
Velin Koychev
Telerik team
Share this question
or