Refresh page if the page loaded too long ?
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
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
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
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
-
- Posts: 12
- Joined: Fri Nov 28, 2008 6:46 pm
Refresh page if the page loaded too long ?
Any solution for refreshing page if the page loads for long time ?
- Tech Support
- Posts: 4948
- Joined: Tue Sep 20, 2005 7:25 pm
- Contact:
Re: Refresh page if the page loaded too long ?
Yes, by using Javascript:
i = iimPlay ("your macro")
if i < 0 {
i = iimPlay ("CODE:REFRESH")
i = iimPlay ("your macro")
};
If the first macro fails because page loads to long => timeout error => The page is refreshed and macro restarted
i = iimPlay ("your macro")
if i < 0 {
i = iimPlay ("CODE:REFRESH")
i = iimPlay ("your macro")
};
If the first macro fails because page loads to long => timeout error => The page is refreshed and macro restarted
-
- Posts: 12
- Joined: Fri Nov 28, 2008 6:46 pm
Re: Refresh page if the page loaded too long ?
thanks you !
-
- Posts: 12
- Joined: Fri Nov 28, 2008 6:46 pm
Re: Refresh page if the page loaded too long ?
Not work !Tech Support wrote:Yes, by using Javascript:
i = iimPlay ("your macro")
if i < 0 {
i = iimPlay ("CODE:REFRESH")
i = iimPlay ("your macro")
};
If the first macro fails because page loads to long => timeout error => The page is refreshed and macro restarted
For e.x :
test.iim
Code: Select all
VERSION BUILD=6101127 RECORDER=FX
SET !ERRORIGNORE YES
SET !TIMEOUT 1
TAB T=1
URL GOTO=http://vietnamglobalteam.org/index.php
Code: Select all
i = iimPlay ("test");
if (i < 0)
{
i = iimPlay ("CODE:REFRESH");
i = iimPlay ("test");
}