Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Automate clicking JavaMenus in a Webform using VB

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,2574
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Automate clicking JavaMenus in a Webform using VB
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Automate clicking JavaMenus in a Webform using VB - 4/5/2005 4:03:25 AM   
  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!
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Automate clicking JavaMenus in a Webform using VB Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts