Thank you... that was the issue. I used the wild chard at the beginning of the 
String an it worked.

Regards,

Manoj



>
>From: Jian Fang <[email protected]>
>To: [email protected]
>Sent: Tue, January 25, 2011 2:00:44 PM
>Subject: Re: Help with Module Def using wildcards
>
>Shouldn't you put the "*" at the beginning of the string?
>
>See the following example.
>
>ui.Table(uid: "issueResult", clocator: [id: "resultstable", class: "results"], 
>      group: "true")
>{
>     TextBox(uid: "{header: 1", clocator: [:])
>     UrlLink(uid: "{header: 2} as ID",  clocator: [text: "*ID"])
>     UrlLink(uid: "{header: 3} as Type",  clocator: [text: "*Type"])
>     UrlLink(uid: "{header: 4} as Status",  clocator: [text: "*Status"])
>     UrlLink(uid: "{header: 5} as Priority",  clocator: [text: "*Priority"])
>     UrlLink(uid: "{header: 6} as Milestone",  clocator: [text: "*Milestone"])
>     UrlLink(uid: "{header: 7} as Owner",  clocator: [text: "*Owner"])
>     UrlLink(uid: "{header: 9} as Summary",  clocator: [text: "*Summary + 
>Labels"])
>     UrlLink(uid: "{header: 10} as Extra", clocator: [text: "*..."])
>
>    //define table elements
>    //for the border column
>    TextBox(uid: "{row: all, column: 1}", clocator: [:])
>     //For the rest, just UrlLink
>    UrlLink(uid: "{row: all, column: all}", clocator: [:])
>}
>
>On Tue, Jan 25, 2011 at 4:37 PM, Manoj Chavan <[email protected]> wrote:
>
>Hi,
>>  I have the following html
>>
>><div id="sentiment_chart" class="center section">
>>   <div style="width: 458px; height: 360px;"
>>id="media_type_hit_per_day_chart">
>>
>>      <div style="text-align: center;" id="StackedColumn3D1295990030Div">
>>           <embed height="355px" width="450px"
>>flashvars="flashvars=&id="StackedColumn3D1295990030" style=""
>>src="http://cdn.xyz.com/prod/charts/StackedColumn3D.swf";
>>type="application/x-shockwave-flash">
>></div>
>></div>
>></div>
>>
>>Here is my ui definition:
>>
>>//Sentiment Chart
>>       ui.Container(uid:"main", clocator:[tag:"div", id:"main"]){
>>           Div(uid:"sentiment", clocator:[tag:"div",
>>id:"media_type_hit_per_day_chart"]){
>>               Div(uid:"chart", clocator:[tag:"div",
>>id:"StackedColumn3D*"])     // <<<<< USING '*' for wildcard>>>>>>>
>>           }
>>       }
>>
>>Here is what TrUMP generated definition (I modified the id to use wild chars) 
>as
>>the ID is dynamically generated.
>>
>>ui.TextBox(uid: "StackedColumn3D", clocator: [tag: "embed", name:
>>"StackedColumn3D*",   <<<<< USING '*' for wildcard>>>>>>>
>>                id: "StackedColumn3D*", src:
>>"http://cdn.meltwaterbuzz.com/meltwaterbuzz/prod/charts/StackedColumn3D.swf";,
>>type: "application/x-shockwave-flash"])
>>
>>
>>When I try to use
>>
>>       if(mbh.waitForElementPresent("StackedColumn3D", 30000)){ ....}
>>
>>OR
>>       if(mbh.waitForElementPresent("main.sentiment.chart", 30000)){....}
>>
>>
>>It always throws an ERROR that the element was not present after timeout. I 
>have
>>used '*' for wildcards before and it had worked.
>>has anything changed or am I using regular expression incorrectly? Thank you 
>for
>>your help in advance.
>>
>>Manoj
>>
>>--
>>You received this message because you are subscribed to the Google Groups 
>>"tellurium-users" group.
>>To post to this group, send email to [email protected].
>>To unsubscribe from this group, send email to 
>>[email protected].
>>For more options, visit this group at 
>>http://groups.google.com/group/tellurium-users?hl=en.
>>
>>
>
-- 
>You received this message because you are subscribed to the Google Groups 
>"tellurium-users" group.
>To post to this group, send email to [email protected].
>To unsubscribe from this group, send email to 
>[email protected].
>For more options, visit this group at 
>http://groups.google.com/group/tellurium-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to