将iMacros脚本转换成另一个免费的自动化工具,例如Kantu或Selenium? [英] Convert iMacros script into another free automation tool like Kantu or Selenium?

查看:191
本文介绍了将iMacros脚本转换成另一个免费的自动化工具,例如Kantu或Selenium?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个脚本来对个人帐户执行大规模操作(我认为上下文不相关).我想出了一种使用此脚本为iMacros进行操作的方法,并且该方法可以正常工作.

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.

但是,我需要添加一个新变量,以使动作之间具有随机延迟,而不是具有固定的"WAIT SECONDS".由于我使用的是iMacros的免费版本,因此无法正常工作,因为它使用了3个以上的变量:(

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 :(

现在,问题是,我不知道如何将该脚本转换为另一个浏览器自动化工具.例如,有人可以帮助我将其翻译"为Kantu或Selenium吗?能行吗?我知道要求工具发表意见是不合时宜的,但这不是我的意图.我真的不在乎我使用哪个程序,只要它是免费的并且可以工作即可.从我看到的Kantu或Selenium来看还可以,但是我不了解它们的工作方式,并且我实际上无法编写代码(这里是noob),所以我不知道如何将其翻译"到另一个平台.对于在Chrome上实现浏览器自动化(使用Mac,如果需要的话),我需要这样做.

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).

有人可以帮我吗?真的很想让它继续下去,但是花99美元购买iMacros的高级版是毫无疑问的,因为这是供个人使用的.

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.

谢谢!

这是我在iMacros上拥有的脚本:

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

推荐答案

仅使用1个Var,就可以轻松地将当前脚本转换为CR/FF的iMacros v10.0.x免费". 2 Vars available ...:

Your current Script can easily be converted to iMacros v10.0.x 'Free' for CR/FF using only 1 single Var, and you'll still have 2 Vars available...:

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 !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*85 + 95); randomNumber;")

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

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

(而且我已经在iMacros论坛上解释了如何使用仅2个Vars的无限" Nar of Vars ...,试图游说"反对这个限制,我发现这有点无用,并且只会困扰用户. ..)

(And I've explained on the iMacros Forum how to use an "infinite" Nb of Vars with only 2 Vars..., trying to "lobby" against that Limitation that I find a bit useless and only nagging Users...)

iMacros论坛上提到的线程/解决方案:
-回复:2018/2019年以及未​​来iMacros ...
=> ...在iMacros论坛上拥有某些帐户的用户被鼓励"支持针对免费"版本的Opinion 3x Var限制中的愚蠢的我的十字军东征" ...

Thread/Solution(s) referred to on the iMacros Forum:
- Re: 2018/2019 and the Future of iMacros...
=> ... Where Users with some Account on the iMacros Forum are "encouraged" to support "my Crusade" against the stupid in my Opinion 3x Var Limitation for the 'Free' Editions...

这篇关于将iMacros脚本转换成另一个免费的自动化工具,例如Kantu或Selenium?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆