• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA - GET HTML elements inside frame using Selenium Webdriver

AV114

Member
I'm trying to access the script first under the frame'onclick="javascript:eek:penPage(this)" and then elements click that are present under the text 'Vendor Master'

but received error selenium WebDriver: unable to locate element
HTML:
<FRAME
id=contents src="" name=contents scrolling=no>
<HTML>
<BODY
id=sidenav onload=getData() bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0">
<!------------------ Header Begins Begins--------------------->
<FORM id=Form1 name=menu>
<DIV style="OVERFLOW: auto; HEIGHT: 450px">
<TABLE id=menuOptionList cellSpacing=0 cellPadding=0 border=0 exilRowKey="true">
<TBODY>
<TR>
<TD height="6%" width=170><A onclick=callHomePage(); class=label href="http://inbls017.india.asia.gcn.local:8088/swiftv2live/HTML/Utility/Menu.htm#">&nbsp;&nbsp;&nbsp;&nbsp;Home Page </A>
</TD>
</TR>
<TR>
<TD vAlign=top width=170 align=left><!---    <A href="#" onclick="javascript:openPage(this);">                    <div name="screenWorkWithMaster_menuOption" id="screenWorkWithMaster_menuOption" font-size=10>
                                &nbsp;style="font-size:10 ;border:1px solid black;"
                            </div>-->
<DIV id=TreeDiv style="FONT-SIZE: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; COLOR: rgb(0,0,0)" name="TreeDiv">
<TABLE cellSpacing=0 border=0>
<TBODY>
<TD class=menuClass><IMG src="http://inbls017.india.asia.gcn.local:8088/swiftv2live/images/space.gif" width=20 height=1><IMG src="http://inbls017.india.asia.gcn.local:8088/swiftv2live/images/space.gif" width=10><SPAN title="Hyperion Sub Group Search" class=menuNodeText style="CURSOR: default">Hyperion Sub Group Search
</SPAN>
</TD>
</TR>
<TR style="FONT-SIZE: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif">
<TD class=menuClass><IMG src="http://inbls017.india.asia.gcn.local:8088/swiftv2live/images/space.gif" width=0 height=1><IMG src="http://inbls017.india.asia.gcn.local:8088/swiftv2live/images/minus.gif" exilAlternate="true"><SPAN title=RPSS class=menuParentNodeText style="CURSOR: default; TEXT-DECORATION: ; COLOR: rgb(0,0,0)">RPSS</SPAN>
</TD></TR>
<TR style="FONT-SIZE: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif">
<TD class=menuClass><IMG src="http://inbls017.india.asia.gcn.local:8088/swiftv2live/images/space.gif" width=10 height=1><IMG src="http://inbls017.india.asia.gcn.local:8088/swiftv2live/images/space.gif" width=10><SPAN title="Vendor Master" class=menuNodeText style="CURSOR: default; TEXT-DECORATION: ; COLOR: red">Vendor Master</SPAN>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</TD>
</IFRAME>
</DIV>
</BODY>
</HTML>
</FRAME>
 
Back
Top