|
Hello, Were using the IE Tabstrip.htc control in our web
application. It’s very weird, I’ve been able to accomplish
everything I’ve wanted with watir up to accessing this control through a
frame. Testing our pages outside the frame I’m able to execute
_javascript_ to select tabs on the tabstrip with code like below. $ie.goto("_javascript_:document.Form1.__ucMasterEntityMaintHeader_tabDefaultTabs_State__.value='3';__doPostBack('ucMasterEntityMaintHeader$tabDefaultTabs','3')") However when the page is contained in the frame the ie.goto
just times out. Code I’m using for frames is below. $ie.frame(:index,1).goto("_javascript_:document.Form1.__ucMasterEntityMaintHeader_tabDefaultTabs_State__.value='2';__doPostBack('ucMasterEntityMaintHeader$tabDefaultTabs','2')") Here’s the html from the table contatining the
tabstrip. <TD vAlign=bottom><STRONG><FONT
face=Tahoma><EM><?IMPORT NAMESPACE = TSN S IMPLEMENTATION =
\"http://epbhdzfps81a/webctrl_client/1_4/tabstrip.htc\" DECLA RENAMESPACE /><TSNS:TabStrip
id=ucMasterEntityMaintHeader_tabDefaultTabs style=\ "WIDTH: 700px\" selectedIndex=\"0\" > asterEntityMaintHeader_tabDefaultTabs_State__.value=selectedIndex}catch(e){}\"
o nSelectedIndexChange=\"JScript:document.Form1.__ucMasterEntityMaintHeader_tabDef aultTabs_State__.value=event.index;if
(getAttribute('_submitting') != 'true'){se tAttribute('_submitting','true');try{__doPostBack('ucMasterEntityMaintHeader$tab DefaultTabs','');}catch(e){setAttribute('_submitting','false');}}\"
tabDefaultSt yle=\"background-color:#e7e7e7;font-family:verdana;font-weight:bold;font-size:7p t;color:#000000;width:120;height:20;text-align:center;border-left:1px
solid butt onhighlight;border-right:1px solid
buttonshadow;border-top:1px solid buttonhighl ight;border-bottom:1px solid
buttonshadow;\">\r\n\r\n\t<TSNS:Tab hoverStyle=\"ba ckground-color:#f5f5f5;text-align:center;\"
selectedStyle=\"background-color:#00 75e7;color:#ffffff;text-align:center;\">Detail</TSNS:Tab>\r\n\t<TSNS:Tab
hoverSt yle=\"background-color:#f5f5f5;text-align:center;\"
selectedStyle=\"background-c olor:#0075e7;color:#ffffff;text-align:center;\">TSP
Entities</TSNS:Tab>\r\n\t<TS NS:Tab
hoverStyle=\"background-color:#f5f5f5;text-align:center;\"
selectedStyle= \"background-color:#0075e7;color:#ffffff;text-align:center;\">Addresses</TSNS:Ta b>\r\n\t<TSNS:Tab
hoverStyle=\"background-color:#f5f5f5;text-align:center;\" sel ectedStyle=\"background-color:#0075e7;color:#ffffff;text-align:center;\">Contact s</TSNS:Tab>\r\n\r\n</TSNS:TabStrip></EM></FONT></STRONG></TD>" irb(main):028:0> How can this be done? And is there any advice for testing ie apps that utilize the
tabstrip.htc behaviour? Thanks, -- Kim Alexander ****************************************************************** This email and any files transmitted with it from the ElPaso Corporation are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. ****************************************************************** |
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
