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

Getting html tag Expression from DOM Explorer

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 29 Apr 2011, 09:43 AM
HI,

In vb . net code am geting root panel expression as below and passed as parameter to HtmlFindExpression as below.


Dim expidMain As New HtmlFindExpression("style =MARGIN:1em", "id=divMain", "Tagname=DIV")

I need to know Is this correct way of  finding expression.

I also need to find all table header expression inside root panel and am trying with below line of code

   Dim simpleGridHeader As IList(Of HtmlControl) = app.find.byexpression(expidMain).Find.Allbyexpression("style=BACKGROUND-IMAGE:url(awc.axd?r=headerBackground.gif&d=ExpandableSectionControl&v=7153590);BACKGROUND-REPEAT:repeat-y;CURSOR:default", "id=?_headerDiv", "class=ExpandableHeader", "Tagname=DIV")

but i get exception here as Object variable or With block variable not set.

Kindly assist ASAP.

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 01 May 2011, 11:01 PM
Hi Uma,

    check out this tutorial on Find Expressions in the WebAii Framework:
http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=byexpression

It should give you a good idea how to create a powerful Find Expression. 

Let me know how it goes.

Best wishes,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Uma
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or