Yes, i see.

This is a bug in watir. We don't support regexps with frames, but we should.

Bret

At 01:19 PM 7/1/2005, Tuyet Cong-Ton-Nu wrote:

Thanks for your suggestion, Bret.  I did try it and got this:



irb(main):050:0> ie.frame(:name, "portfolioTreeContent").frame(:name, /^treeframe/).html

Watir::Exception::UnknownFrameException: Unable to locate a frame with name (?-m

ix:^treeframe)

        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1832:in `initialize'

        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:218:in `new'

        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:218:in `frame'

        from (irb):50

        from :0



When I use the "treeframe + dynamic number", it works just fine, but I need the wildcard version (sigh!):



irb(main):051:0> ie.frame(:name, "portfolioTreeContent").frame(:name, "treeframe1120181362589").getHTML



=> "\r\n<BODY onclick=\"tc_oldScreenOffset = event.clientY;\" vLink=#333399 aLin

k=#333399 link=#333399 bgColor=#ffffff background=\"\" onload=tc_onLoad();><FORM

id=hiddenForm name=hiddenForm action=/araneae/PortfolioAdmin/Sidebar/sidebarTre

eB- method=post target=\"\"><INPUT id=common.sessionId type=hidden value=b1qD9kL

SK0WB3Qtkceok_w99 name=common.sessionId></INPUT> <INPUT id=parentIds type=hidden

name=parentIds></INPUT> <INPUT id=yPosition type=hidden name=yPosition></INPUT>

<INPUT id=filterId type=hidden value=1 name=filterId></INPUT> </FORM><NOBR><IMG

class=ti src=\"/images/treeimages/img-globe-0.gif\" align=textTop>&nbsp;<SPAN i

d=tc_-1><B>tuyeta</B></SPAN><BR>\r\n<DIV id=tc_d_-1><SPAN id=tc_false_100139268>

<A href=\"javascript:tc_toggleFolder('100139268',1)\"><IMG class=st src=\"/image

s/treeimages/img-plus-cont-0.gif\" align=textTop></A><IMG class=ti src=\"/images

/treeimages/img-folder-closed-1.gif\" align=textTop>&nbsp;</SPAN><SPAN id=tc_100

139268>HOME</SPAN><BR><SPAN id=tc_false_100139269><A href=\"javascript:tc_toggle

Folder('100139269',1)\"><IMG class=st src=\"/images/treeimages/img-plus-end-0.gi

f\" align=textTop></A><IMG class=ti src=\"/images/treeimages/img-folder-closed-1

.gif\" align=textTop>&nbsp;</SPAN><SPAN id=tc_100139269>TREES</SPAN><BR></DIV></

NOBR>\r\n<META http-equiv=PRAGMA content=NO-CACHE></BODY>"

irb(main):052:0>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to