Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

» Selenium IDE Verify different Maps (Hybridview, Mapview etc.)
Fri Nov 25, 2016 9:56 pm by DJ87

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Web Driver: Unable to click a link present inside the frame of a frameset

View previous topic View next topic Go down

Web Driver: Unable to click a link present inside the frame of a frameset

Post by Nandu on Thu May 17, 2012 1:52 pm

Unable to click a link present inside the frame of a frameset

<!--<html>
<head>
<frameset id="mainFrameSet" rows="*">
<frame id="headerPlusFrame" scrolling="no" marginwidth="0" marginheight="0" src="../listing/headerPlus.do?lastPage=home" title="Main" name="headerPlusFrame">
<html>
<head>
<body onload="onLoad()">
<table cellspacing="0" cellpadding="0" border="0" bgcolor="#F6F6FB" style="height: 100%; width: 100%">
<tbody>
<tr>
<tr style="height: 100%;">
<td style="padding:2px" colspan="4">
<iframe id="dataFrame" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" src="data.do" title="Data" name="dataFrame">
<html>
<head>
<frameset id="dataFrameSet" rows="*,20">
<frameset id="centerFrameset" cols="*,0">
<frame id="workspaceFrame" frameborder="0" border="0" framespacing="2" title="Workspace" src="workspace.do" name="workspaceFrame">
<html>
<head>
<frameset id="workspaceFrameSet" class="panelFrame" border="0" framespacing="0" frameborder="0" rows="18,*">
<frame id="workspaceHeaderFrame" scrolling="no" noresize="" marginwidth="0" marginheight="0" src="workspaceHeader.do?title=" title="Workspace Header" name="workspaceHeaderFrame">
<frame id="workspaceBodyFrame" noresize="" marginwidth="0" marginheight="0" src="../listing/home.do" title="Workspace Body" name="workspaceBodyFrame">
<html>
<head>
<body onload="onLoad()">
<script language="javascript">
<table width="100%">
<table width="92%" cellspacing="4" cellpadding="4" border="0" align="center">
<tbody>
<tr>
<td width="500px" valign="top">
<table width="400px" cellspacing="2" cellpadding="2" border="0">
<tbody>
<tr>
<tr>
<tr>
<tr>
<td class="homepage">
<img id="doclistImage" border="0" align="left" src="../res/general/folder.gif" alt="Document List">
<a class="homepage" href="javascript:showDocumentList()">Document List</a>

</td>
</tr>
<tr>
<tr>
<tr>
<tr>
</tbody>
</table>
</td>
<td width="500px" valign="top">
</tr>
</tbody>
</table>
</body>
</html>
</frame>
</frameset>
</html>
</frame>
<frame id="rightFrame" frameborder="0" border="0" framespacing="2" title="Encyclopedia" src="../jsp/listing/blank.jsp" name="rightFrame">
</frameset>
<frame id="discussionsFrame" frameborder="0" framespacing="2" border="0" noresize="" src="discussions.do" title="Discussions" name="discussionsFrame">
</frameset>
</html>
</iframe>
</td>
</tr>
</tbody>
</table>
<iframe id="autoNavFrame" src="javascript:parent.empty();" style="width:100%;height:100%;display: none;" title="Main" name="autoNavFrame">
<a id="startLink_iconMenu_menu_btnApplications" onfocus="_CW.MenuWidget_keepFocus('iconMenu_menu_btnApplications');return false;" href="javascript:void(0)" style="position:absolute;left:-30px;top:-30px; visibility:hidden"></a>
<a id="endLink_iconMenu_menu_btnApplications" onfocus="_CW.MenuWidget_keepFocus('iconMenu_menu_btnApplications');return false;" href="javascript:void(0)" style="position:absolute;left:-30px;top:-30px; visibility:hidden"></a>
</body>
</html>
</frame>
</frameset>
</html>-->


I tried the following but it didn't workout

driver.switchTo().frame("headerPlusFrame");
driver.switchTo().frame("workspaceFrame");
driver.switchTo().frame("workspaceHeaderFrame");
driver.switchTo().frame("workspaceBodyFrame");
driver.findElement(By.linkText("Document List")).click();


could you please help me on this?

Nandu

Posts : 4
Join date : 2012-04-16

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum