Getting html tag Expression from DOM Explorer

2 posts, 0 answers
  1. Uma
    Uma avatar
    1 posts
    Member since:
    Jan 2011

    Posted 29 Apr 2011 Link to this post

    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.

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 01 May 2011 Link to this post

    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
Back to Top