| |
Beet
Posts: 1
Score: 0
Joined: 4/5/2005
From:
Status: offline
|
Hello all, thanks for reading. I have been using VBscript to write automation for webpages. Normally I have been able to get ID's of an element and done this: oIE.document.getElementById(button).click I have been able to use this for clicking cells inside a table too. Now I'm trying to automate a webapp that uses Javascript menus. I am limited on my knowledge of these and need to find a way to be able to click through them. They are onMouseOver menus that expand as you mouseover them. I tried to find the ID's for the menu item and just click them, but does'nt seem to be working. Here is some source from the page. From spying on the object (The menu item is called, "Open Enrollment Reports" -> "Enrollment Report") in a submenu I see this: Innermost Element: [DIV], Index: [166] <DIV id=menuItemHilite6 style="LEFT: 11px; VISIBILITY: inherit; COLOR: #336699; POSITION: absolute; TOP: 1px">Enrollment Report  ;</DIV> Here is the view source section that mentions "Enrollment Report" function fwLoadMenus() { //Task ID = 840 added 01/14/2005 by DMax window.fw_menu_PENDEDBENEFITS = new Menu("Pended Benefits",350,20,"arial, helvetica, sans-serif",11,"#336699","#336699","#ffffff","#ffCC66"); fw_menu_PENDEDBENEFITS.addMenuItem("Update Pended Benefits","location='pesearch.asp'"); fw_menu_PENDEDBENEFITS.fontWeight="normal"; fw_menu_PENDEDBENEFITS.hideOnMouseOut=true; fw_menu_PENDEDBENEFITS.childMenuIcon="img/arrows.gif"; window.fw_menu_PARTICIPANTADMIN = new Menu("root",220,20,"arial, helvetica, sans-serif",11,"#336699","#336699","#ffffff","#ffCC66"); // Task ID = 840 added 01/04/2005 by DMax fw_menu_PARTICIPANTADMIN.addMenuItem(fw_menu_PENDEDBENEFITS,""); fw_menu_PARTICIPANTADMIN.addMenuItem("Maintain Bank Account - PreNote Status","location='processPreNote.asp'"); fw_menu_PARTICIPANTADMIN.fontWeight="normal"; fw_menu_PARTICIPANTADMIN.hideOnMouseOut=true; fw_menu_PARTICIPANTADMIN.childMenuIcon="img/arrows.gif"; window.fw_menu_ANL_REPORTS = new Menu("Open Enrollment Reports",350,20,"arial, helvetica, sans-serif",11,"#336699","#336699","#ffffff","#ffCC66"); ... ... ... ... fw_menu_ANL_REPORTS.addMenuItem("Enrollment Status","location='openenrollstatus.asp'"); fw_menu_ANL_REPORTS.addMenuItem("Enrollment Benefit Election Report - current effective dates","location='benefitreport.asp?FD=0&WM=2'"); fw_menu_ANL_REPORTS.addMenuItem("Enrollment Benefit Election Report - include future effective dates","location='benefitreport.asp?FD=1&WM=2'"); fw_menu_ANL_REPORTS.addMenuItem("Enrollment Report","location='enrolledreport.asp?WM=2'"); .. .. Report","location='PE Any help would be GREATLY appreciated. Thank you!
|
|