-
iMacros for Chrome
Thank your
for using iMacros for Chrome, the open-source web
automation solution.
Note that this
version is a
Beta
version,
so please do not expect it to be as polished as
its bigger
siblings for IE and Firefox.
Having said that, iMacros for Chrome is
ready to be used for web automation.
Its a macro
recorder for
your Google Chrome browser.
With
iMacros for Chrome we are also testing an
interesting new GUI layout and the
concept of storing
iMacros as
bookmarklets
. We look forward to
your feedback!
Contents
[
hide
]
?
1
Installation
o
1.1 Add File Access
o
1.2 How to
install an extension from outside the Chrome
gallery
?
?
?
?
?
?
2 First
Steps
3 iMacros as
Bookmarklets
4 Social
Scripting
5 Demo and Test
Macros
6 Command Line
Support
7 Scripting
Chrome
o
7.1 Using Chrome with the iMacros RunAs
Agent (iimRunner)
?
?
?
?
7.1.1 Where is the iimDisplay
message?
8 Getting
Help
9
Limitations
10 Version
History
o
10.1 Version Archive
o
10.2 How to
install an older version
?
?
?
11
Security
12 Known
Issues
13 See
Also
Installation
?
Download the
latest version
iMacros_for_Chrome
- this
version fixes the Chrome V35
issues!
No administrative rights are required
for the installation. All versions of Chrome (Win,
Mac and
Linux) are supported.
This installer supports storing macros
inside bookmarks
. If this is
all you want, then there is nothing
else to do. But if you prefer to store
macros in regular text files (like iMacros for
Firefox/IE do), then
please install our
new file access modules below.
Add File
Access
iMacros for Chrome used a NPAPI
plugin internally to access the file system. And
because Chrome
extensions can no longer
use the NPAPI (since May 2014) we have to provide
the alternative
solution - using the
new NativeMessaging API of Chrome.
This
means the
default
install of
iMacros for Chrome V8 and higher allows you to
only store
macros in
bookmarks
. If you want to store the
macros in text files on your hard drive or you are
using macros that access data files
(via
!DATASOURCE
), please
install one of these free file
access
enhancements:
Please install iMacros
for Chrome before installing the file access
module. The installers
below contain
ONLY the file access code, not the complete
iMacros for Chrome extension.
?
Windows:
=>
Download File Access
Installer
?
Mac:
=>
Download File Access
Installer
(updated Oct 1, 2014)
?
Linux:
Download
tar ball
?
?
?
?
?
It can be used
for both, Mac and Linux.
The install
script is inside the
tar -xvf imacros_
After that command is executed the
imacros_fio directory is created. Please move that
directory to some place where it will
be persistent, e.g. ~/iMacros
?
?
then cd to that directory
and execute ./
(Checksum: MD5
(imacros_) = dc668d1b8265443e0ef7314a6bc92b3f)
This is how
iMacros for Chrome looks without the new and free
file access module installed. Once it is
installed, you will see the familiar
treeview there.
How to install an
extension from outside the Chrome gallery
Extensions that you download from the
Chrome Web Store are installed automatically,
which is
great for distribution, but
not so great for development. Recognizing this,
Chrome gives you a quick
way of loading
up your working directory for testing. Let's do
that now.
?
Visit
chrome://extensions in your browser (or open up
the Chrome menu by clicking the icon to
the far right of the Omnibox: The
menu's icon is three horizontal bars.. and select
Extensions
under the Tools menu to get
to the same place).
?
Ensure that the Developer mode checkbox
in the top right-hand corner is checked.
?
Drag & drop the
beta version on the extension page. This works
only
on the
extension page. Chrome checks if the
extension is valid, it'll be loaded up and active
right
away!
This does not
work Chrome V36 Beta on Windows: That is caused by
a new, upcoming security
improvement:
Starting with V36, Chrome will block all installs
from outside the Google Chrome
Gallery!
So far this block seems to be only in the Windows
version, not Chrome 36 for Linux or Mac.
To work around this, install our beta
version from the gallery.
First Steps
After you installed iMacros for Chrome
you will see the iMacros icon in the toolbar.
First we
recommend that you look at a
few demo macros. After this start recording your
first own macro. To
get start, a simple
website like this wiki or our company website are
a good start. To record, open
the
iMacros panel and click record. When you are done
recording, click the stop icon either in the
panel or in the Chrome toolbar. The
iMacros icon changes to a stop button with line
counter during
recording and replay.
The
iMacros for Chrome Panel: You can start playing
macros either from the iMacros panel or from your
bookmarks or macros that are embedded
into websites.
The iMacros icon changes to a stop
button with line counter during recording and
replay.
The
WAIT
command displays the wait time as countdown.
The iMacros panel has a
loop
button to run macros
repeatedly. This can be useful for checking a
certain web page status or for web
testing. While the loop is running, the current
loop number is
stored in the
!LOOP
internal variable.
Example usage: Create a macro that
refreshes the current page every 5 seconds:
VERSION BUILD=1031208 RECORDER=CR
REFRESH
WAIT SECONDS=5
Start the PAGE
REFRESH macro with the LOOP button.
iMacros as Bookmarklets
If
you are used to other iMacros versions, you might
be surprised that iMacros for Chrome does not
store its macros as text files. The
reason for this is that Chrome extensions can not
write or read
files unless they use a
special NPAPI dll (Update: iMacros for Chrome V2.0
Beta has such a DLL
and can now read
and write normal macros!). Instead we are testing
a new concept and store
macros as
bookmarklets
inside the
regular Chrome bookmarking system.
This
means you can
take full advantage of
the Google Bookmark Sync
features or
bookmark
sync extensions such as
Xmarks.
As the macros are packed as
bookmarklets, you can
just drag & drop
them to your bookmarks
folder
or bookmarks bar.
Example:
Search the German
railway website for train connection from
Frankfurt International
Airport to
Mannheim
- Select
You can rename, edit or
delete your iMacros via the the Chrome bookmark
manager
You can
sync your iMacros macros just like normal
bookmarks. And with the iMacros secure password
encryption that means that you can even
store login macros securely in the cloud.
iMacros for
Chrome V2 Beta can view, run and edit the standard
*.iim text file based macros, just like
iMacros for Firefox/IE.
Social Scripting
iMacros for
Chrome pioneers the social scripting concept.
Users can embed the complete macro in
a
simple link that can be shared with friends and
coworkers. Users can also embed the link on their
homepage, blog and company Intranet. In
this way, users can help website visitors perform
certain
tasks. Instead of telling
visitors how to fill out a form, users can let
iMacros fill out the form for them.
All
information is stored inside the link as a text
string, and nothing is stored on our servers.
Tip:
To send macros
(bookmarklets) by email, use the link shortener
service. Example
usage:
available flights
do you prefer? Just click the link to run the
search and
get up-to-date
pricing.
Demo and Test
Macros
For a list of demo and test
macros please see
/imacros/chrome/
. If these
macros replay fine in your Google
Chrome browser, then the basic installation of
iMacros for
Chrome is ok.
Command Line Support
The
Google Chrome API does not provide command line
information for extensions yet, but user
Embed the
iMacros
bookmarklet in a local web page.
1.
Create a bookmark for the
macro you want to launch
2.
Right-click on the bookmark in Chrome
and select Edit
3.
Copy
everything in the URL field starting with var
e_m64 up to and including
chEvent(evt);
4.
Paste this code in place
of the line starting with var e_m64 in the HTML
file shown below
Example:
Example command line / batch
file:
(x86)
file:///D:/web/
-
-
-
-
-
-
-
-
-
上一篇:实验二 红外测距传感器实验
下一篇:RAPIDIO驱动适配及其速度测试记录