>> Sun wrote:
>> Anyone have any suggestions?
>> 
> Send us the html for the entire <td> tag. You've only
> posted a fragment.

OK. But since it is 5 tables deep...and very complex, I will just post the 
table involved:
===
<table cellpadding="0" cellspacing="0" border="0">
<tr><td rowspan="2" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="5" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_l_corner_on.gif"; 
width="12" height="23" border="0"/></td>
<td class="pix_on" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="1" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_r_corner_on.gif"; 
width="12" height="23" border="0"/></td>
<td rowspan="2" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="5" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_l_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="1" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_r_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td rowspan="2" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="5" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_l_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="1" height="1"/></td>

<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_r_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td rowspan="2" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="5" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_l_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="1" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_r_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td rowspan="2" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="5" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_l_corner_off.gif"; 
width="12" height="23" border="0"/></td>
<td class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/trans_pixel.gif"; 
width="1" height="1"/></td>
<td rowspan="2" class="off" nowrap="true"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/tab_r_corner_off.gif"; 
width="12" height="23" border="0"/></td>
</tr>
<tr>
<td class="on" 
nowrap><script>menuStart(TAB_MENU_ON,'DES<u>K</u>TOP','javascript:Events.invokeEvent(\'2_5_act\')','DESKTOP','DesktopTab');
registerMenuShortcut('K');
menuItem('My Activities','javascript:Events.invokeEvent(\'2_6_act\')',false,'My 
Activities','DesktopTab_Activities');
menuItem('My 
Submissions','javascript:Events.invokeEvent(\'2_7_act\')',false,'My 
Submissions','DesktopTab_Submissions');
menuItem('My Renewals','javascript:Events.invokeEvent(\'2_8_act\')',false,'My 
Renewals','DesktopTab_Renewals');
menuItem('My Policy 
Changes','javascript:Events.invokeEvent(\'2_9_act\')',false,'My Policy 
Changes','DesktopTab_PolicyChanges');
menuItem('My Queues','javascript:Events.invokeEvent(\'2_10_act\')',false,'My 
Queues','DesktopTab_AssignableQueues');
menuEnd();
</script></td><td class="off" 
nowrap><script>menuStart(TAB_MENU_OFF,'A<u>C</u>COUNT','javascript:Events.invokeEvent(\'2_11_act\')','ACCOUNT','AccountTab');
registerMenuShortcut('C');
</script><div id="2_12" class="menu_item_find"><table border="0" 
cellspacing="0" cellpadding="0"><tr><td class="menu_item_find" 
valign="center" nowrap="true">Acct #:</td><td 
class="menu_item_find" valign="center" nowrap="true"><input value="" 
type="text" class="txt" smokeId="AccountNumberSearchItemWidget_TextValue" 
id="2_1" delayOnChange="false" helpText="__UseTitle__" contenteditable="true" 
label="" onfocus="EventHandlers.onFocus()" onChange="if 
(EventHandlers.valueChanged(this)==false) return false;" style="text-align: 
left" onKeyDown="" size="12" name="2_1" 
onblur="EventHandlers.onBlur()"></td><td class="menu_item_find" 
valign="center" nowrap="true">  <a 
smokeId="AccountNumberSearchItemWidget_Button" 
href="javascript:Events.invokeEvent('2_13_act')"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/menu_claim_search.gif"; 
width="13" height="13" border="0" class="" alt="" label=""></a></
 
td></tr></table></div><script>menuVirtualItem(DHTML.getElementById("2_12"),
 DHTML.getElementById("2_1"));
menuEnd();
</script></td><td class="off" 
nowrap><script>menuStart(TAB_MENU_OFF,'<u>P</u>OLICY','javascript:Events.invokeEvent(\'2_14_act\')','POLICY','PolicyTab');
registerMenuShortcut('P');
menuItem('New 
Submission','javascript:Events.invokeEvent(\'2_15_act\')',false,'New 
Submission','PolicyTab_NewSubmission');
</script><div id="2_16" class="menu_item_find"><table border="0" 
cellspacing="0" cellpadding="0"><tr><td class="menu_item_find" 
valign="center" nowrap="true">Sub #:</td><td class="menu_item_find" 
valign="center" nowrap="true"><input value="" type="text" class="txt" 
smokeId="SubmissionNumberSearchItemWidget_TextValue" id="2_2" 
delayOnChange="false" helpText="__UseTitle__" contenteditable="true" label="" 
onfocus="EventHandlers.onFocus()" onChange="if 
(EventHandlers.valueChanged(this)==false) return false;" style="text-align: 
left" onKeyDown="" size="12" name="2_2" 
onblur="EventHandlers.onBlur()"></td><td class="menu_item_find" 
valign="center" nowrap="true">  <a 
smokeId="SubmissionNumberSearchItemWidget_Button" 
href="javascript:Events.invokeEvent('2_17_act')"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/menu_claim_search.gif"; 
width="13" height="13" border="0" class="" alt="" label=""></a>
 
</td></tr></table></div><script>menuVirtualItem(DHTML.getElementById("2_16"),
 DHTML.getElementById("2_2"));

</script><div id="2_18" class="menu_item_find"><table border="0" 
cellspacing="0" cellpadding="0"><tr><td class="menu_item_find" 
valign="center" nowrap="true">Policy #:</td><td 
class="menu_item_find" valign="center" nowrap="true"><input value="" 
type="text" class="txt" smokeId="PolicyRetrievalItemWidget_TextValue" id="2_3" 
delayOnChange="false" helpText="__UseTitle__" contenteditable="true" label="" 
onfocus="EventHandlers.onFocus()" onChange="if 
(EventHandlers.valueChanged(this)==false) return false;" style="text-align: 
left" onKeyDown="" size="12" name="2_3" 
onblur="EventHandlers.onBlur()"></td><td class="menu_item_find" 
valign="center" nowrap="true">  <a 
smokeId="PolicyRetrievalItemWidget_Button" 
href="javascript:Events.invokeEvent('2_19_act')"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/menu_claim_search.gif"; 
width="13" height="13" border="0" class="" alt="" 
label=""></a></td>
 
</tr></table></div><script>menuVirtualItem(DHTML.getElementById("2_18"),
 DHTML.getElementById("2_3"));
menuEnd();
</script></td><td class="off" 
nowrap><script>menuStart(TAB_MENU_OFF,'SEARC<u>H</u>','javascript:Events.invokeEvent(\'2_20_act\')','SEARCH','SearchTab');
registerMenuShortcut('H');
menuItem('Policies','javascript:Events.invokeEvent(\'2_21_act\')',false,'Policies','SearchTab_Policies');
menuItem('Accounts','javascript:Events.invokeEvent(\'2_22_act\')',false,'Accounts','SearchTab_Accounts');
menuItem('Producer 
Codes','javascript:Events.invokeEvent(\'2_23_act\')',false,'Producer 
Codes','SearchTab_ProducerCodes');
menuItem('Contacts','javascript:Events.invokeEvent(\'2_24_act\')',false,'Contacts','SearchTab_Contacts');
menuItem('Activities','javascript:Events.invokeEvent(\'2_25_act\')',false,'Activities','SearchTab_Activities');
menuEnd();
</script></td><td class="off" 
nowrap><script>menuStart(TAB_MENU_OFF,'ADMINIS<u>T</u>RATION','javascript:Events.invokeEvent(\'2_26_act\')','ADMINISTRATION','AdminTab');
registerMenuShortcut('T');
menuItem('Roles','javascript:Events.invokeEvent(\'2_27_act\')',false,'Roles','AdminTab_Roles');
menuItem('Attributes','javascript:Events.invokeEvent(\'2_28_act\')',false,'Attributes','AdminTab_Attributes');
menuItem('Workflows','javascript:Events.invokeEvent(\'2_29_act\')',false,'Workflows','AdminTab_Workflows');
menuItem('Regions','javascript:Events.invokeEvent(\'2_30_act\')',false,'Regions','AdminTab_Regions');
menuItem('Underwriting 
Companies','javascript:Events.invokeEvent(\'2_31_act\')',false,'Underwriting 
Companies','AdminTab_UWCompanies');
menuItem('Event 
Messages','javascript:Events.invokeEvent(\'2_32_act\')',false,'Event 
Messages','AdminTab_Destinations');
menuItem('Script 
Parameters','javascript:Events.invokeEvent(\'2_33_act\')',false,'Script 
Parameters','AdminTab_ScriptParameters');
menuItem('Activity 
Patterns','javascript:Events.invokeEvent(\'2_34_act\')',false,'Activity 
Patterns','AdminTab_ActivityPatterns');
menuEnd();
</script></td></tr>
</table>
===

The key area I want is this:
===
<td class="off" 
nowrap><script>menuStart(TAB_MENU_OFF,'A<u>C</u>COUNT','javascript:Events.invokeEvent(\'2_11_act\')','ACCOUNT','AccountTab');
registerMenuShortcut('C');
</script><div id="2_12" class="menu_item_find"><table border="0" 
cellspacing="0" cellpadding="0"><tr><td class="menu_item_find" 
valign="center" nowrap="true">Acct #:</td><td 
class="menu_item_find" valign="center" nowrap="true"><input value="" 
type="text" class="txt" smokeId="AccountNumberSearchItemWidget_TextValue" 
id="2_1" delayOnChange="false" helpText="__UseTitle__" contenteditable="true" 
label="" onfocus="EventHandlers.onFocus()" onChange="if 
(EventHandlers.valueChanged(this)==false) return false;" style="text-align: 
left" onKeyDown="" size="12" name="2_1" 
onblur="EventHandlers.onBlur()"></td><td class="menu_item_find" 
valign="center" nowrap="true">  <a 
smokeId="AccountNumberSearchItemWidget_Button" 
href="javascript:Events.invokeEvent('2_13_act')"><img 
src="https://somewhere.com/pc_ch4/pc/resources/images/menu_claim_search.gif"; 
width="13" height="13" border="0" class="" alt="" label=""></a></
 
td></tr></table></div><script>menuVirtualItem(DHTML.getElementById("2_12"),
 DHTML.getElementById("2_1"));
menuEnd();
</script></td>
===

And most specifically this bit: 
<script>menuStart(TAB_MENU_OFF,'A<u>C</u>COUNT','javascript:Events.invokeEvent(\'2_11_act\')','ACCOUNT','AccountTab');
registerMenuShortcut('C');
</script>

Interesting mess, isn't it? But of course -- if Watir is to be useful in the 
corporate world, it will need to handle ugly stuff like this....and sorry about 
the formatting....it looks like when a bunch of HTML gets in the formatting 
goes out the window....
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4171&messageID=11533#11533
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to