How To? Skip Step

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
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
Post Reply
tekkenzz
Posts: 6
Joined: Wed Aug 06, 2014 8:19 am

How To? Skip Step

Post by tekkenzz » Wed Aug 06, 2014 8:32 am

Welcome, How jump to "'twitter followers' if
button TAG POS=1 TYPE=SPAN ATTR=ID:l does not exist I want to save time

Code: Select all

SET !DATASOURCE_DELIMITER :
SET !DATASOURCE Setup.txt
SET !DATASOURCE_COLUMNS 2
SET !VAR1 {{!COL1}}
SET !VAR2 {{!COL2}}


SET !REPLAYSPEED FAST


SET !ERRORIGNORE YES
SET !LOOP -9999999
SET !TIMEOUT_TAG 1
SET !TIMEOUT_STEP 1
SET !VAR3 EVAL("var randomNumber=Math.floor(Math.random()*10.3 + 4.3); randomNumber;")
SET !VAR4 EVAL("var randomNumber=Math.floor(Math.random()*6.3 + 2.4); randomNumber;")
SET !VAR5 EVAL("var randomNumber=Math.floor(Math.random()*4.1 + 1.2); randomNumber;")
SET !VAR6 EVAL("var randomNumber=Math.floor(Math.random()*10 + 5); randomNumber;")
SET !VAR7 EVAL("var randomNumber=Math.floor(Math.random()*93.2 + 50.3); randomNumber;")
SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !REPLAYSPEED FAST
SET !TIMEOUT 15
SET !TIMEOUT_PAGE 8
SET !TIMEOUT_STEP 6
SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !REPLAYSPEED FAST
SET !TIMEOUT 15
SET !TIMEOUT_PAGE 8
SET !TIMEOUT_STEP 6

'twitter tweet

TAB T=1
URL GOTO=http://addlikes.me/p.php?p=retweet
FRAME F=1
TAG POS=1 TYPE=SPAN ATTR=ID:l
TAB T=2
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:update-form ATTR=*
WAIT SECONDS=2
TAB T=1
TAB CLOSEALLOTHERS
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:x
WAIT SECONDS=1

'twitter followers

TAB T=1
URL GOTO=http://addlikes.me/p.php?p=twitter
TAG POS=1 TYPE=A ATTR=TXT:Follow
TAB T=2
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:follow_btn_form ATTR=TXT:Follow
WAIT SECONDS=2
TAB T=1
TAB CLOSEALLOTHERS
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:skip
WAIT SECONDS=1
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How To? Skip Step

Post by chivracq » Wed Aug 06, 2014 10:02 am

tekkenzz wrote:Welcome, How jump to "'twitter followers' if
button TAG POS=1 TYPE=SPAN ATTR=ID:l does not exist I want to save time

Code: Select all

SET !DATASOURCE_DELIMITER :
SET !DATASOURCE Setup.txt
SET !DATASOURCE_COLUMNS 2
SET !VAR1 {{!COL1}}
SET !VAR2 {{!COL2}}


SET !REPLAYSPEED FAST


SET !ERRORIGNORE YES
SET !LOOP -9999999
SET !TIMEOUT_TAG 1
SET !TIMEOUT_STEP 1
SET !VAR3 EVAL("var randomNumber=Math.floor(Math.random()*10.3 + 4.3); randomNumber;")
SET !VAR4 EVAL("var randomNumber=Math.floor(Math.random()*6.3 + 2.4); randomNumber;")
SET !VAR5 EVAL("var randomNumber=Math.floor(Math.random()*4.1 + 1.2); randomNumber;")
SET !VAR6 EVAL("var randomNumber=Math.floor(Math.random()*10 + 5); randomNumber;")
SET !VAR7 EVAL("var randomNumber=Math.floor(Math.random()*93.2 + 50.3); randomNumber;")
SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !REPLAYSPEED FAST
SET !TIMEOUT 15
SET !TIMEOUT_PAGE 8
SET !TIMEOUT_STEP 6
SET !ERRORIGNORE YES
SET !LOADCHECK NO
SET !REPLAYSPEED FAST
SET !TIMEOUT 15
SET !TIMEOUT_PAGE 8
SET !TIMEOUT_STEP 6

'twitter tweet

TAB T=1
URL GOTO=http://addlikes.me/p.php?p=retweet
FRAME F=1
TAG POS=1 TYPE=SPAN ATTR=ID:l
TAB T=2
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:update-form ATTR=*
WAIT SECONDS=2
TAB T=1
TAB CLOSEALLOTHERS
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:x
WAIT SECONDS=1

'twitter followers

TAB T=1
URL GOTO=http://addlikes.me/p.php?p=twitter
TAG POS=1 TYPE=A ATTR=TXT:Follow
TAB T=2
WAIT SECONDS=2
TAG POS=1 TYPE=BUTTON FORM=ID:follow_btn_form ATTR=TXT:Follow
WAIT SECONDS=2
TAB T=1
TAB CLOSEALLOTHERS
WAIT SECONDS=3
TAG POS=1 TYPE=A ATTR=TXT:skip
WAIT SECONDS=1
CIM...! :mrgreen:

Woaf-Woaf-Woaf!, your Script is a complete mess!!
You don't need to repeat 20 times all the SET Statements at the beginning of your Script, one "SET !ERRORIGNORE YES" for example to name one is enough for the whole Macro...
I wonder where you copied it from...?, '!LOADCHECK' has been deprecated since 2008. I didn't even know this Command...! If you had been using iMacros since 2008, you wouldn't be asking your Question on the Forum (but rather answering all Threads...!).

To answer your Question (which I normally don't do with Status "CIM"...), you'd need to split your Macro in several .iim Macros launched from a .js Script handling the Conditional "Jump in Code"...

Other Solution in pure .iim Macro, you can use the same Technique I used for a Conditional WAIT Statement using 'EVAL()' (+ shorter '!TIMEOUT_STEP' Value (1 or 0)) in this Thread:
- Re: Any way to "WAIT UNTIL IP CHANGE" OR seomthing?
.
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply