ie.frame(:name,"NodeInfo").div(:id, "Clist").table(:name,"main").cell(:id,"detailList").div(:index, 1).select_list(:index,1).select "Internal Company"
sleep 5 while the script is executed the item called Internal Company gets highlighted but when I it goes to the next text field it disappears: The same thing happens to all the combo box in that page Thanks suerama50 Html page code: <HTML xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:util="urn:schemas- esp-net:util" xmlns:z="#RowsetSchema"> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=windows-1252"> <script language="javascript" src="scripts/ecoListExt.js"></ script><script language="javascript" src="scripts/ListCustom.js"></ script><script language="javascript" src="scripts/utlGeneral.js"></ script><script language="javascript" src="scripts/ utlCrossBrowser.js"></script><script language="javaScript" src="scripts/ListColumns.js"></script><script language="javaScript" src="scripts/ListRows.js"></script><script language="javaScript" src="scripts/PageNavigation.js"></script><script language="javaScript" src="scripts/ListBase.js"></script><script language="javaScript" src="scripts/HListBase.js"></script><script language="javaScript" src="scripts/List.js"></script><script language="javaScript" src="scripts/HList.js"></script><script language="javascript" src="scripts/opsADMIN_Constants.js"></script><script src="scripts/ opsADMIN_CompanyDetail.js" type="text/javascript"></script><link rel="stylesheet" type="text/css" href="opsStyleSheet.css"> <link rel="stylesheet" type="text/css" href="List.css"> <link rel="stylesheet" type="text/css" href="ListArray.css"> <link rel="stylesheet" type="text/css" href="popcalendar.css"> </HEAD><xml id="ildDummy"></xml><body language="javascript" style="margin-top: 0px;" onload="InitPage('')" onunload="UnloadPage()" onbeforeunload="QueryUser()"> <FORM method="post" name="frmCompanyDetail" id="frmCompanyDetail" onclick="submitForm()"> <table width="730px" cellspacing="0"> <tr> <td colspan="2" id="tdErrorMsg" name="tdErrorMsg" height="15px" style="color: red;font-weight: bold;"></td> </tr> <tr> <td colspan="2"> <div id="Clist" name="Clist" width="100%"></div> </td> </tr> <tr> <td valign="top" width="50%" style="padding-top: 30px;"> <div id="ParentsList" name="ParentsList" width="100%"></div> </td> <td valign="top" style="padding-top: 30px;"> <div id="ChildrenList" name="ChildrenList" width="100%"></div> </td> </tr> </table> </FORM><script language="javascript"> var list1, plist, clist, gSession, gCompany, gDBFlag, gMOID, gADMIN; var col = null; gSession = "{10DCA7F6-3F22-4156-BCFB-957DD84F5333}"; gCompany = "1"; gDBFlag = "2"; gMOID = "0"; gADMIN = "1"; list1 = new HList('detailList','Detail List'); list1.listType = 1; list1.itemName = "Clist"; list1.divElement = document.getElementById("Clist"); list1.formElement = document.getElementById("frmCompanyDetail"); list1.szTitle = 'Company Details'; list1.popupCalendar = 1; list1.bEditInline = 1; list1.bMultiSelect = 1; list1.highlightRow = 0; list1.selectRow = 0; list1.charWidth = 7; list1.bSingleLineText = 1; list1.bBlankEntryRow = 1; list1.bNoAlign = 1; list1.bNavigationBar = 0; list1.szXmlRoot = "DL"; list1.szRowXMLRoot = "DR"; list1.getColumnStyle = getColumnStyleH; list1.getColumnWidth = form_getColumnWidth; list1.onChange = formChanged; list1.gEditCell=null; list1.onEditRowEx=ecoOnEditRowEx; list1.OnBlurEx=ecoOnBlurEx; list1.header.addColumn("* Company Name", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "NAME"); col = list1.header.addColumn("* Company Type", 400, COLUMN_DATA_TYPE_NUMBER, COLUMN_TYPE_DATA, "TYPE"); col.setDrowdownPickList( '3', 'Brokerage Firm' , '2', 'CounterParty' , '1', 'Internal Company' , '4', 'Publishing Company' ); list1.header.addColumn("Ext. ID", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_HIDDEN_COLUMN, "EXTID"); list1.header.addColumn(" Main Address", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "LOCATION"); list1.header.addColumn(" Alternative Address", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "ALTADDR"); list1.header.addColumn('None',100,0,1024); col = list1.header.addColumn(" Country", 400, COLUMN_DATA_TYPE_NUMBER, COLUMN_TYPE_DATA, "COUNTRY"); col.setDrowdownPickList( '161', 'AE - United Arab Emirates' , '44', 'AG - Antigua and Barbuda' , '42', 'AL - Albania' , '46', 'AM - Armenia' , '45', 'AR - Argentina' , '2', 'AT - Austria' , '1', 'AU - Australia' , '47', 'AZ - Azerbaijan' , '51', 'BB - Barbados' , '50', 'BD - Bangladesh' , '3', 'BE - Belgium' , '59', 'BF - Burkina Faso' , '4', 'BG - Bulgaria' , '49', 'BH - Bahrain' , '60', 'BI - Burundi' , '54', 'BJ - Benin' , '56', 'BO - Bolivia' , '58', 'BR - Brazil' , '48', 'BS - Bahamas' , '55', 'BT - Bhutan' , '57', 'BW - Botswana' , '52', 'BY - Belarus' , '53', 'BZ - Belize' , '5', 'CA - Canada' , '71', 'CG - Republic of Congo' , '35', 'CH - Switzerland' , '67', 'CK - Cook Islands' , '64', 'CL - Chile' , '62', 'CM - Cameroon' , '65', 'CN - China' , '66', 'CO - Colombia' , '68', 'CR - Costa Rica' , '69', 'CU - Cuba' , '63', 'CV - Cape Verde' , '70', 'CY - Cyprus' , '7', 'CZ - Czech Republic' , '12', 'DE - Germany' , '72', 'DJ - Djibouti' , '8', 'DK - Denmark' , '73', 'DM - Dominica' , '74', 'DO - Dominican Republic' , '43', 'DZ - Algeria' , '75', 'EC - Ecuador' , '9', 'EE - Estonia' , '76', 'EG - Egypt' , '79', 'ER - Eritrea' , '33', 'ES - Spain' , '80', 'ET - Ethiopia' , '81', 'EU - EU' , '10', 'FI - Finland' , '82', 'FJ - Fiji' , '117', 'FM - Micronesia' , '11', 'FR - France' , '87', 'GD - Grenada' , '85', 'GE - Georgia' , '86', 'GH - Ghana' , '84', 'GM - Gambia' , '89', 'GN - Guinea' , '78', 'GQ - Equatorial Guinea' , '13', 'GR - Greece' , '88', 'GT - Guatemala' , '90', 'GW - Guinea-Bissau' , '91', 'GY - Guyana' , '93', 'HN - Honduras' , '6', 'HR - Croatia' , '92', 'HT - Haiti' , '14', 'HU - Hungary' , '95', 'ID - Indonesia' , '16', 'IE - Ireland' , '97', 'IL - Israel' , '94', 'IN - India' , '96', 'IR - Iran' , '15', 'IS - Iceland' , '17', 'IT - Italy' , '98', 'JM - Jamaica' , '99', 'JO - Jordan' , '18', 'JP - Japan' , '100', 'KE - Kenya' , '103', 'KG - Kyrgyzstan' , '61', 'KH - Cambodia' , '101', 'KI - Kiribati' , '170', 'KP - Republic of Korea' , '138', 'KR - Korea' , '102', 'KW - Kuwait' , '104', 'LA - Lao' , '141', 'LC - Saint Lucia' , '107', 'LI - Liechtenstein' , '150', 'LK - Sri Lanka' , '106', 'LR - Liberia' , '105', 'LS - Lesotho' , '20', 'LT - Lithuania' , '21', 'LU - Luxembourg' , '19', 'LV - Latvia' , '119', 'MA - Morocco' , '23', 'MC - Monaco' , '139', 'MD - Moldova' , '108', 'MG - Madagascar' , '113', 'MH - Marshall Islands' , '83', 'MK - Macedonia' , '112', 'ML - Mali' , '121', 'MM - Myanmar' , '118', 'MN - Mongolia' , '114', 'MR - Mauritania' , '22', 'MT - Malta' , '115', 'MU - Mauritius' , '111', 'MV - Maldives' , '109', 'MW - Malawi' , '116', 'MX - Mexico' , '110', 'MY - Malaysia' , '120', 'MZ - Mozambique' , '122', 'NA - Namibia' , '126', 'NE - Niger' , '127', 'NG - Nigeria' , '125', 'NI - Nicaragua' , '24', 'NL - Netherlands' , '26', 'NO - Norway' , '124', 'NP - Nepal' , '123', 'NR - Nauru' , '128', 'NU - Niue' , '25', 'NZ - New Zealand' , '129', 'OM - Oman' , '132', 'PA - Panama' , '135', 'PE - Peru' , '133', 'PG - Papua New Guinea' , '136', 'PH - Philippines' , '130', 'PK - Pakistan' , '27', 'PL - Poland' , '28', 'PT - Portugal' , '131', 'PW - Palau' , '134', 'PY - Paraguay' , '137', 'QA - Qatar' , '29', 'RO - Romania' , '30', 'RU - Russia' , '140', 'RW - Rwanda' , '144', 'SA - Saudi Arabia' , '148', 'SB - Solomon Islands' , '146', 'SC - Seychelles' , '151', 'SD - Sudan' , '34', 'SE - Sweden' , '147', 'SG - Singapore' , '32', 'SI - Slovenia' , '31', 'SK - Slovakia' , '145', 'SN - Senegal' , '77', 'SV - El Salvador' , '153', 'SY - Syrian Arab Republic' , '152', 'SZ - Swaziland' , '155', 'TG - Togo' , '154', 'TH - Thailand' , '158', 'TM - Turkmenistan' , '157', 'TN - Tunisia' , '156', 'TT - Trinidad and Tobago' , '159', 'TV - Tuvalu' , '162', 'TZ - Tanzania' , '36', 'UA - Ukraine' , '160', 'UG - Uganda' , '37', 'UK - United Kingdom' , '38', 'US - United States' , '163', 'UY - Uruguay' , '164', 'UZ - Uzbekistan' , '142', 'VC - St. Vincent/Grenadines' , '166', 'VE - Venezuela' , '167', 'VN - Viet Nam' , '165', 'VU - Vanuatu' , '143', 'WS - Samoa' , '168', 'YE - Yemen' , '149', 'ZA - South Africa' , '169', 'ZM - Zambia' ); list1.header.addColumn(" Street Address", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "STREETADDR"); list1.header.addColumn(" City", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "CITY"); list1.header.addColumn(" State/Province", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "PROVENCE"); list1.header.addColumn(" Postal Code", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "POSTALCODE"); list1.header.addColumn('None',100,0,COLUMN_TYPE_READ_ONLY); col = list1.header.addColumn(" Billing Country", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "BCOUNTRY"); col.setDrowdownPickList( '161', 'AE - United Arab Emirates' , '44', 'AG - Antigua and Barbuda' , '42', 'AL - Albania' , '46', 'AM - Armenia' , '45', 'AR - Argentina' , '2', 'AT - Austria' , '1', 'AU - Australia' , '47', 'AZ - Azerbaijan' , '51', 'BB - Barbados' , '50', 'BD - Bangladesh' , '3', 'BE - Belgium' , '59', 'BF - Burkina Faso' , '4', 'BG - Bulgaria' , '49', 'BH - Bahrain' , '60', 'BI - Burundi' , '54', 'BJ - Benin' , '56', 'BO - Bolivia' , '58', 'BR - Brazil' , '48', 'BS - Bahamas' , '55', 'BT - Bhutan' , '57', 'BW - Botswana' , '52', 'BY - Belarus' , '53', 'BZ - Belize' , '5', 'CA - Canada' , '71', 'CG - Republic of Congo' , '35', 'CH - Switzerland' , '67', 'CK - Cook Islands' , '64', 'CL - Chile' , '62', 'CM - Cameroon' , '65', 'CN - China' , '66', 'CO - Colombia' , '68', 'CR - Costa Rica' , '69', 'CU - Cuba' , '63', 'CV - Cape Verde' , '70', 'CY - Cyprus' , '7', 'CZ - Czech Republic' , '12', 'DE - Germany' , '72', 'DJ - Djibouti' , '8', 'DK - Denmark' , '73', 'DM - Dominica' , '74', 'DO - Dominican Republic' , '43', 'DZ - Algeria' , '75', 'EC - Ecuador' , '9', 'EE - Estonia' , '76', 'EG - Egypt' , '79', 'ER - Eritrea' , '33', 'ES - Spain' , '80', 'ET - Ethiopia' , '81', 'EU - EU' , '10', 'FI - Finland' , '82', 'FJ - Fiji' , '117', 'FM - Micronesia' , '11', 'FR - France' , '87', 'GD - Grenada' , '85', 'GE - Georgia' , '86', 'GH - Ghana' , '84', 'GM - Gambia' , '89', 'GN - Guinea' , '78', 'GQ - Equatorial Guinea' , '13', 'GR - Greece' , '88', 'GT - Guatemala' , '90', 'GW - Guinea-Bissau' , '91', 'GY - Guyana' , '93', 'HN - Honduras' , '6', 'HR - Croatia' , '92', 'HT - Haiti' , '14', 'HU - Hungary' , '95', 'ID - Indonesia' , '16', 'IE - Ireland' , '97', 'IL - Israel' , '94', 'IN - India' , '96', 'IR - Iran' , '15', 'IS - Iceland' , '17', 'IT - Italy' , '98', 'JM - Jamaica' , '99', 'JO - Jordan' , '18', 'JP - Japan' , '100', 'KE - Kenya' , '103', 'KG - Kyrgyzstan' , '61', 'KH - Cambodia' , '101', 'KI - Kiribati' , '170', 'KP - Republic of Korea' , '138', 'KR - Korea' , '102', 'KW - Kuwait' , '104', 'LA - Lao' , '141', 'LC - Saint Lucia' , '107', 'LI - Liechtenstein' , '150', 'LK - Sri Lanka' , '106', 'LR - Liberia' , '105', 'LS - Lesotho' , '20', 'LT - Lithuania' , '21', 'LU - Luxembourg' , '19', 'LV - Latvia' , '119', 'MA - Morocco' , '23', 'MC - Monaco' , '139', 'MD - Moldova' , '108', 'MG - Madagascar' , '113', 'MH - Marshall Islands' , '83', 'MK - Macedonia' , '112', 'ML - Mali' , '121', 'MM - Myanmar' , '118', 'MN - Mongolia' , '114', 'MR - Mauritania' , '22', 'MT - Malta' , '115', 'MU - Mauritius' , '111', 'MV - Maldives' , '109', 'MW - Malawi' , '116', 'MX - Mexico' , '110', 'MY - Malaysia' , '120', 'MZ - Mozambique' , '122', 'NA - Namibia' , '126', 'NE - Niger' , '127', 'NG - Nigeria' , '125', 'NI - Nicaragua' , '24', 'NL - Netherlands' , '26', 'NO - Norway' , '124', 'NP - Nepal' , '123', 'NR - Nauru' , '128', 'NU - Niue' , '25', 'NZ - New Zealand' , '129', 'OM - Oman' , '132', 'PA - Panama' , '135', 'PE - Peru' , '133', 'PG - Papua New Guinea' , '136', 'PH - Philippines' , '130', 'PK - Pakistan' , '27', 'PL - Poland' , '28', 'PT - Portugal' , '131', 'PW - Palau' , '134', 'PY - Paraguay' , '137', 'QA - Qatar' , '29', 'RO - Romania' , '30', 'RU - Russia' , '140', 'RW - Rwanda' , '144', 'SA - Saudi Arabia' , '148', 'SB - Solomon Islands' , '146', 'SC - Seychelles' , '151', 'SD - Sudan' , '34', 'SE - Sweden' , '147', 'SG - Singapore' , '32', 'SI - Slovenia' , '31', 'SK - Slovakia' , '145', 'SN - Senegal' , '77', 'SV - El Salvador' , '153', 'SY - Syrian Arab Republic' , '152', 'SZ - Swaziland' , '155', 'TG - Togo' , '154', 'TH - Thailand' , '158', 'TM - Turkmenistan' , '157', 'TN - Tunisia' , '156', 'TT - Trinidad and Tobago' , '159', 'TV - Tuvalu' , '162', 'TZ - Tanzania' , '36', 'UA - Ukraine' , '160', 'UG - Uganda' , '37', 'UK - United Kingdom' , '38', 'US - United States' , '163', 'UY - Uruguay' , '164', 'UZ - Uzbekistan' , '142', 'VC - St. Vincent/Grenadines' , '166', 'VE - Venezuela' , '167', 'VN - Viet Nam' , '165', 'VU - Vanuatu' , '143', 'WS - Samoa' , '168', 'YE - Yemen' , '149', 'ZA - South Africa' , '169', 'ZM - Zambia' ); list1.header.addColumn(" Billing Street Address", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "BSTREETADDR"); list1.header.addColumn(" Billing City", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "BCITY"); list1.header.addColumn(" Billing State/Province", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "BPROVENCE"); list1.header.addColumn(" Billing Postal Code", 400, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "BPOSTALCODE"); list1.header.addColumn("ID", 0, COLUMN_DATA_TYPE_NUMBER, COLUMN_TYPE_ID_COLUMN, "ID"); list1.rows[0].columns[0].bRequired = 1; list1.rows[0].columns[1].bRequired = 1; list1.addRowData( '','','','','','','','','','','','','','','','','','0' ); list1.refreshList(); strWRN1 = 'Would you like to save the company?'; strWRN2 = 'Error: Duplicate company name!! Please change before saving.' strWRN5 = 'Error: The \'Company Name\' length should not exceed 50 characters.' strWRN6 = 'Error: The \'Company Name\' shoud not contain commas (,).' plist = new List('parList','Parents List'); plist.listType = 0; plist.itemName = "ParentsList"; plist.divElement = document.getElementById("ParentsList"); plist.formElement = document.getElementById("frmCompanyDetail"); plist.szTitle = 'Parent Companies'; plist.bMultiSelect = 1; plist.highlightRow = 1; plist.selectRow = 0; plist.charWidth = 7; plist.szXmlRoot = "PL"; plist.szRowXMLRoot = "PR"; plist.navigation.bAdd = 0; plist.onDeleteRowEx = refresh_CompanyPickList; plist.onAddRowEx = formChanged; plist.navigation.renderList = PageNavigation_RenderList; plist.navigation.szTotalMsg = '[Total %3]'; plist.navigation.szNoTotalMsg = 'Page %1 of %2'; plist.navigation.szNext = 'Next Page'; plist.navigation.szPrev = 'Previous Page'; plist.navigation.szLast = 'Last Page'; plist.navigation.szFirst = 'First Page'; plist.navigation.szDelete = 'Delete Company'; plist.szNoItemsFound = 'No Parent Company Selected'; plist.navigation.bCustom1=1; plist.navigation.iCustom1='images/plus.gif'; plist.navigation.tCustom1='Add Company'; plist.navigation.onCustom1=add_parentsCompanies; plist.header.addColumn("* Company Name", 260, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "NAME"); plist.header.addColumn("ID", 0, COLUMN_DATA_TYPE_NUMBER, COLUMN_TYPE_ID_COLUMN, "ID"); plist.header.addColumn("", 0, "", COLUMN_TYPE_MULTI_SELECT, "COMPMO"); plist.addRowData( ); plist.refreshList(); clist = new List('childList','Children List'); clist.itemName = "ChildrenList"; clist.divElement = document.getElementById("ChildrenList"); clist.formElement = document.getElementById("frmCompanyDetail"); clist.szTitle = 'Child Companies'; clist.bMultiSelect = 1; clist.highlightRow = 1; clist.selectRow = 0; clist.charWidth = 7; clist.navigation.bAdd = 0; clist.szXmlRoot = "CL"; clist.szRowXMLRoot = "CR"; clist.formStyle = 1; clist.onDeleteRowEx = refresh_CompanyPickList; clist.onAddRowEx = formChanged; clist.navigation.renderList = PageNavigation_RenderList; clist.navigation.szTotalMsg = '[Total %3]'; clist.navigation.szNoTotalMsg = 'Page %1 of %2'; clist.navigation.szNext = 'Next Page'; clist.navigation.szPrev = 'Previous Page'; clist.navigation.szLast = 'Last Page'; clist.navigation.szFirst = 'First Page'; clist.navigation.szDelete = 'Delete Company'; clist.szNoItemsFound = 'No Child Company Selected'; clist.navigation.bCustom1=1; clist.navigation.iCustom1='images/plus.gif'; clist.navigation.tCustom1='Add Company'; clist.navigation.onCustom1=add_childrenCompanies; clist.header.addColumn("* Company Name", 260, COLUMN_DATA_TYPE_STRING, COLUMN_TYPE_DATA, "NAME"); clist.header.addColumn("ID", 0, COLUMN_DATA_TYPE_NUMBER, COLUMN_TYPE_ID_COLUMN, "ID"); clist.header.addColumn("", 0, "", COLUMN_TYPE_MULTI_SELECT, "COMPMO"); clist.addRowData( ); clist.refreshList(); </script></body> </HTML> -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com