PDA

View Full Version : Unable to control navigation Menu of an intranet website which having frames



raj85
08-21-2013, 08:38 AM
Hello friends,

I am trying acess one website's navigation menus which are in Frames but somehow I am not able to get it.
Below is the HTML source of page.


<FRAMESET ROWS="82,0,*,18" BORDER="0" >
<FRAME NAME="top" SRC="myMenu.asp?empid=30554&seskey=7409" scrolling="no" marginheight=0 frameborder=0 >
<FRAME SRC="blank.html" NAME="dummy" noresize>
<FRAME SRC="../login/blank.asp?empid=30554&seskey=7409" NAME="display" noresize>
<FRAME SRC="../includes/equipfooterlogo.asp" NAME="displayfooter" noresize scrolling="no">


HTML of navigation Menu is under 1st frame named "top", I have attached source of frame.
And I am trying to access menu item named "Transaction" below is HTML code for same you can find it in attached HTML source.


<DIV style="CLIP: rect(0px 153px 60px 0px); BACKGROUND-COLOR: #556b2f; WIDTH: 153px; HEIGHT: 60px; VISIBILITY: visible; COLOR: #ffffff; TOP: 0px; LEFT: 0px; bgColor: #556b2f" id=divoCMenu0_1 class=cloCMenu0>Transaction</DIV></DIV>

I tried to access it by many ways but no luck




IE.Document.getelementbyid("top").Document.ChildNodes.Item(0).getelementbyid("divoCMenu0_1").Click
'Also tried
IE.Document.getelementbyid("top").Document.getelementbyid("divoCMenu0_1").Click



Please give me some solution.