我如何使用iMacros编辑html?

时间:2017-10-11 15:58:18

标签: javascript html imacros

使用iMacros,我需要更改此html命令

<button class="btn btn--primary btn--large" disabled="" type="button" aria-label="Search" id="w0-find-product-search-bar-search-button" data-w-onclick="beforeSearch|w0-find-product-search-bar" style="outline: 1px solid blue;">Get started</button>

<button class="btn btn--primary btn--large" type="button" aria-label="Search" id="w0-find-product-search-bar-search-button" data-w-onclick="beforeSearch|w0-find-product-search-bar" style="outline: 1px solid blue;">Get started</button>

我的意思是从脚本中删除disabled=""

1 个答案:

答案 0 :(得分:0)

尝试以下命令:

URL GOTO=javascript:{document.querySelector("#w0-find-product-search-bar-search-button").removeAttribute("disabled");}