I'm trying to click a spot on a webpage, and I can't get webrecorder to record it exactly the way I need it...
Unfortunately, I can't show you the exact website, but I did make a simple facsimile of the problem I'm facing:
Here is a url: http://www.managemyjobs.com/mjtnet/mjt.htm
On it, there is a bit of clickable text; I cannot record a click, but I can manually click it without a problem.
Here is the html of my page:
Code: Select all
<DOCTYPE>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META>
<META>
<META>
<META>
<script>
function click_it(a,b){
alert("Hello MJTNET! You clicked " + b);
}
</script>
</HEAD>
<BODY>
<SPAN>Click_Me_1</SPAN>
<SPAN>Click_Me_3</SPAN>
</BODY>
</HTML>
SPAN id=sportTab style="CURSOR: pointer" onclick="click_it(this,'4')"
You're welcome to download the page and try it locally.
I can get the FIRST link to click by using the following:
Code: Select all
Let>FrameName={""}
Let>FormName={""}
Let>idValue={"sportTab"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,SPAN,ID,str:idValue,r
But I want to click the SECOND link... and I keep failing when I try to add the INDEX parameter...
Code: Select all
...
Let>idxValue={1}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,SPAN,ID,str:idValue,INDEX,idxValue,r
Reading carefully, the documentation says:
attrib takes one of the following values:
Can INDEX work with the ID attribute? If not, exactly do I get this to work?
Tx,
George