Home:ALL Converter>Convert iMacros script into another free automation tool like Kantu or Selenium?

Convert iMacros script into another free automation tool like Kantu or Selenium?

Ask Time:2019-03-18T05:56:19         Author:Owly

Json Formatter

I'm trying to create a script to perform mass actions on a personal account (context not relevant, I think). I figured a way to do it using this script for iMacros and it was working.

However, I needed to add a new variable to have a random delay between actions instead of having a fixed "WAIT SECONDS". Since I'm using the free version of iMacros, this doesn't work because it's using more than 3 variables :(

Now, problem is, I have no idea how to convert this script into another browser automation tool. Anyone can help me "translate it" to Kantu or Selenium, for example? Would it work? I'm aware that requesting opinion on tools is off-topic, but that's not my intention. I really don't care which program I use as long as it's free and it works. From what I've seen Kantu or Selenium are ok, but I don't understand how they work and I can't actually code (noob here) so I have no idea how to "translate" this to another platform. I need this for browser automation on Chrome (using a mac, if relevant).

Can anyone help me on this? Would really love to get this going but paying $99 for the premium version of iMacros is out of question as this is for personal use.

Thank you!

This is the script I have on iMacros:

SET !TIMEOUT_STEP 1
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO

SET !VAR1 {{!LOOP}}
ADD !VAR1 1

TAB T=1
TAG POS={{!VAR1}} TYPE=DIV ATTR=CLASS:-utLf EXTRACT=TXT
SET !VAR2 {{!EXTRACT}}

SET RANDOM EVAL("var randomNumber=Math.floor(Math.random()*85 + 95); randomNumber;")

SET !EXTRACT NULL

TAB OPEN
TAB T=2
URL GOTO=https://www.example.com/{{!VAR2}}
WAIT SECONDS={{RANDOM}}

TAG POS=1 TYPE=BUTTON ATTR=CLASS:BY3EC<SP><SP>_0mzm*
WAIT SECONDS=2

TAG POS=1 TYPE=BUTTON ATTR=CLASS:aOOlW<SP>-Cab_*

TAB CLOSE

Author:Owly,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/55212324/convert-imacros-script-into-another-free-automation-tool-like-kantu-or-selenium
yy