Hi all,
I have been using watir from past 2 years. But now I have moved to a new
project. In the new project I am trying to automate a website. Please
find the attached jpg which will show the website item on which I am
trying to click. I have also attached the source code of the element
(Using IE development tool bar).
Can you please let me know how to access this element. I tried different
methods but was unsuccessful.
I am also copying the source code below. For your reference
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN"><META
http-equiv="Content-Type" content="text/html; charset=utf-8">
<HTML xmlns="http://www.w3.org/1999/xhtml"><BODY
class="ShortCutsBackground" oncontextmenu="ShowMenu(); return false;"
style="WIDTH: 100%" onclick="HideMenu();" scroll="auto"><FORM id="ctl01"
name="ctl01" action="ShortCuts.aspx?ShortCutGroupID=1"
method="post"><TABLE style="HEIGHT: 100%" cellSpacing="0"
cellPadding="0" width="100%" border="0"><TBODY><TR><TD
vAlign="top"><TABLE id="DataListCtrl" style="WIDTH: 100%;
BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: red" cellSpacing="0"
cellPadding="0" border="0"><TBODY><TR><TD><TABLE cellSpacing="0"
cellPadding="0" width="100%" border="0"><TBODY><TR><TD
vAlign="top"><SPAN id="DataListCtrl_ctl00_ShortCutKey1_lblGroup"
onmouseover="this.style.backgroundColor = '#ECE9D8';"
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; DISPLAY: inline-block;
Z-INDEX: 102; OVERFLOW: hidden; BORDER-LEFT: 0px; WIDTH: 100%; CURSOR:
hand; BORDER-BOTTOM: 0px; BACKGROUND-COLOR: white"
onclick="window.parent.parent.frames('tpRight').location.replace('/WorkflowWebAccess/TaskList.aspx?ViewID=2');"
onmouseout="this.style.backgroundColor = 'White';"><TABLE
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px;
BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px"
cellSpacing="2" cellPadding="0" border="0"><TBODY><TR vAlign="middle"
align="center"><TD style="WIDTH: 100%">
<SPAN id="DataListCtrl_ctl00_ShortCutKey1_lblText" style="DISPLAY:
inline-block; FONT-WEIGHT: bold; Z-INDEX: 103; WIDTH: 100%;
BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE:
none; BACKGROUND-COLOR: transparent; TEXT-ALIGN: center;
BORDER-BOTTOM-STYLE: none">Inbox</SPAN>
</TD></TR></TBODY></TABLE></SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM></BODY></HTML>
Can you please help me on how to write a code for accessing the given
link
Attachments:
http://www.ruby-forum.com/attachment/6024/Element.jpg
http://www.ruby-forum.com/attachment/6025/Element1.htm
···
--
Posted via http://www.ruby-forum.com/.