Macro Doesn't Wait for Refresh to Complete!?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Macro Doesn't Wait for Refresh to Complete!?

by viking on Fri Aug 23, 2013 9:39 pm

When a macro contains a URL link, e.g.
Code: Select all
URL GOTO=https://www.somepage.com
the macro waits until the page has loaded before continuing.

However, when the macro contains a link that refreshes the page, the macro does not wait until the refresh is completed. For example:
Code: Select all
TAG POS=3 TYPE=A FORM=ID:mySearchForm ATTR=CLASS:refreshResultsLink
TAG POS=1 TYPE=SPAN FORM=ID:investForm ATTR=ID:yui-pg0-0-page-report28 EXTRACT=TXT
In this case, the EXTRACT occurs before the page has refreshed.

How can I make the macro wait until the refresh is completed?

Note that I need to refresh the page in a loop as fast as possible, so it would not be suitable to insert an arbitrary wait command.
viking
 
Posts: 206
Joined: Sun Mar 16, 2008 12:22 am

Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot] and 5 guests

-->