Help me change a macro according to website.

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
LAPIII
Posts: 254
Joined: Tue Oct 07, 2008 7:24 pm

Help me change a macro according to website.

Post by LAPIII » Sat Jun 05, 2010 7:39 am

Why is the following topic un-editable: http://forum.imacros.net/viewtopic.php?f=13&t=6324? Google's interface has changed (see the screenshot). So how do I change the macro using method B. I don't get how iMacros knows where the relative positions are on the webpage.
Attachments
Google.PNG
Google.PNG (11.62 KiB) Viewed 850 times
Tom, Tech Support
Posts: 3601
Joined: Mon May 31, 2010 4:59 pm

Re: Help me change a macro according to website.

Post by Tom, Tech Support » Tue Jun 22, 2010 12:12 pm

Hello,

Thanks for bringing this to our attention! As you know, websites (even Google) change and evolve over time and so we (and anyone using iMacros) have to revisit our macros and samples.

For now, you could just use:

Code: Select all

TAG POS=1 TYPE=DIV ATTR=TXT:*&&ID:resultStats EXTRACT=TXT  
which extracts the whole sentence containing the results number, and then parse that number out using script. Or you can use the SEARCH command with regular expressions.

We will work on updating our samples after the release of iMacros V7.
Regards,

Tom, iMacros Support
Post Reply