Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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