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

How can I get a element by content and put data from excel?

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mithun
Top achievements
Rank 1
Mithun asked on 03 Jun 2011, 10:41 AM
HI
In a telerik tree view control some data have been populated without any id or element name. Like one node is
<LI class=rtLI>
<DIV class=rtTop><SPAN class=rtSp></SPAN><SPAN class=rtUnchecked></SPAN><SPAN class=rtIn>VALUE</SPAN> </DIV>
</LI>
So when I m recording what I want to get this element by content name. So that I can later use Data feed like excel to get the node by content name,

Can u please help me how can i do this?

After recording it just recorded as "Click Span9" step and I don't get any other option to get the element as expected I think.
Thanx

2 Answers, 1 is accepted

Sort by
0
Mithun
Top achievements
Rank 1
answered on 07 Jun 2011, 10:57 AM
Hello.. any help???
0
Anthony
Telerik team
answered on 08 Jun 2011, 04:26 PM
Hello Mithun,

Thanks for evaluating Test Studio. To change how an Element Is Found, please see this user's guide article. You can add a clause to find the element by InnerText or TextContent.

For the more advanced scenario of how to data bind the find expression of an element, please see this KB article.

Regards,
Anthony
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Mithun
Top achievements
Rank 1
Answers by
Mithun
Top achievements
Rank 1
Anthony
Telerik team
Share this question
or