Hi there! Today I show you how to connect/install jQuery to your iMacros file. Also you can download demeo here. Okay, lets started!
Introduction
What is iMacros? iMacros is an extension for the Mozilla Firefox, Google Chrome, and Internet Explorer web browsers which adds record and replay functionality similar to that found in web testing and form filler software. The macros can be combined and controlled via JavaScript. Demo macros and JavaScript code examples are included with the software. iMacros was developed by iOpus. First released in 2001, iMacros was the first macro recorder tool specifically designed and optimized for web browsers and form filling.
How to connect jQuery?
Proble: If you do your bots more functional, then you need more capacity. jQuery give your this capacity.
Just past this part of code in your JavaScript file:
function loadScriptFromURL(url) { var request = Components.classes['@mozilla.org/xmlextras/xmlhttprequest;1'].createInstance(Components.interfaces.nsIXMLHttpRequest), async = false; request.open('GET', url, async); request.send(); if (request.status !== 200) { var message = 'an error occurred while loading script at url: ' + url + ', status: ' + request.status; iimDisplay(message); return false; } eval(request.response); return true; } loadScriptFromURL('https://devbattles.com/js/jq.for.im.js'); $ = window.$, JQuery = window.JQuery;
Ok, thet’s all! And now you can make something like this:
var checkName = $("span:contains('"+selectN+"')").text();
Thanks for attention!