how to make ClickTag work for second search button?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
bbgaw
Newbie
Posts: 13
Joined: Thu May 08, 2008 7:54 pm

how to make ClickTag work for second search button?

Post by bbgaw » Fri Jun 20, 2008 3:43 pm

I am trying to use index for clicktag. I tried several format of clicktag, but it is not working for me. Can anybody tell me what's wrong with my usage?

The scripts I recorded from WebRecorder clicks on the first search button, not the second button that I want to click.

Here is my code and it doesn't click anything. Thanks a lot!


IE_Navigate>%IE[0]%,http://www.ec.gc.ca/CEPARegistry/subs_l ... arch.cfm,r
IE_Wait>%IE[0]%,r
Wait>delay

Let>FrameName={""}
Let>FormName={""}
Let>FieldName={"critCAS"}
Let>FieldValue=line
IE_FormFill>%IE[0]%,str:FrameName,str:FormName,str:FieldName,str:FieldValue,0,r

Let>FrameName={""}
Let>FormName={""}
Let>TagValue={"1"}
IE_ClickTag>%IE[0]%,str:FrameName,str:FormName,INPUT,INDEX,str:TagValue,r

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Jun 20, 2008 11:07 pm

Some indexes start with 0 and some with 1.

Are you using the right value for the starting count?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

bbgaw
Newbie
Posts: 13
Joined: Thu May 08, 2008 7:54 pm

ClickTag not work

Post by bbgaw » Sat Jun 21, 2008 3:01 am

I tried both 0 and 1, even 2. none of them works. so I thought maybe there are other problems. maybe I didn't set up frame right? because sometimes it clicks wrong button. but none of combinations I tried works.
could you please tell me more details?

Thanks!!!

allthenames
Newbie
Posts: 18
Joined: Wed Aug 18, 2010 5:51 pm

same problem

Post by allthenames » Mon Jan 17, 2011 1:22 am

IE_Wait>%IE[0]%,r
Wait>delay


Wait>delay

IE_Wait>%IE[0]%,r
Wait>delay

//Modify buffer size if required ...
Let>SPAN18_SIZE=4098
IE_ExtractTag>%IE[0]%,,SPAN,18,0,SPAN18,r
MidStr>r_6,1,r,SPAN18

Let>temp=%SPAN18%
Trim>temp,temp
StringReplace>temp,$,,temp
Let>comma=,
StringReplace>temp,comma,,temp
Let>result=temp*.01
Let>offer=result*.7


wait>3

IE_ClickTag>%IE[0]%,,SPAN,18,0,SPAN18,r
MessageModal>offer

Label>end_script

Everything works except I need to click the tag after i extract the info that i need.
-Ben

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts