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
how to make ClickTag work for second search button?
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
ClickTag not work
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!!!
could you please tell me more details?
Thanks!!!
-
- Newbie
- Posts: 18
- Joined: Wed Aug 18, 2010 5:51 pm
same problem
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.
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