Find Text Than Click A Link Alongside This Text

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
elfifits
Posts: 1
Joined: Tue Mar 25, 2008 6:04 pm

Find Text Than Click A Link Alongside This Text

Post by elfifits » Tue Mar 25, 2008 6:10 pm

Hello,

What I am trying to do is automate some Google AdWords processes. I have created a script and I am stuck on one point. Heres my problem:

I need iMacros to find the text I am searching for (a text ad title) and then click on a link titled "Edit" to the right of it.

Any suggestions?

Thanks!
mknoll1
Posts: 174
Joined: Fri Dec 23, 2005 4:14 pm

Re: Find Text Than Click A Link Alongside This Text

Post by mknoll1 » Wed Mar 26, 2008 8:47 pm

You need to use the relative positioning command. The script will look something like the one below. You can edit out Yellow, Green, Blue and make them variables if you like.

Code: Select all

VERSION BUILD=5220125     
TAB T=1     
TAB CLOSEALLOTHERS     
URL GOTO=http://www.iopus.com/imacros/demo/v4/pos/index.htm     
SIZE X=801 Y=602    
TAG POS=1 TYPE=SPAN ATTR=TXT:Yellow<SP>Page:* 
TAG POS=R1 TYPE=A ATTR=TXT:Click<SP>to<SP>open<SP>this<SP>page   
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Back 
TAG POS=1 TYPE=SPAN ATTR=TXT:Green<SP>Page:* 
TAG POS=R1 TYPE=A ATTR=TXT:Click<SP>to<SP>open<SP>this<SP>page   
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Back 
TAG POS=1 TYPE=SPAN ATTR=TXT:Blue<SP>Page:*
TAG POS=R1 TYPE=A ATTR=TXT:Click<SP>to<SP>open<SP>this<SP>page   
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:Back 
WAIT SECONDS=3
Post Reply