LoginSignup
9
12

More than 5 years have passed since last update.

iMacrosでWebページの操作を自動化する

Posted at

お疲れ様です!
GMOリサーチの石黒です!

システムを運用していると、Webページ上で繰り返し作業を行ないたいことがあります。

そんな時、Webページの操作をマクロ化できる、
便利なアドオンがありましたのでご紹介します。


iMacrosを追加

image.png

firefoxのアドオンから探せます。
(現在のリンクはこちら:https://addons.mozilla.org/ja/firefox/addon/imacros-for-firefox/)


iMacrosの使い方


iMacrosの起動画面とテスト用サイト

image.png
上図の右側はCakePHP3でbakeしたテスト用のサイトです。
iMacrosを起動すると上図の左側ように、サイドバーが表示されます。


サイドバーの Rec タブを選択して

image.png


Record スタート!

image.png

新規登録操作を手動で実行し Record します
image.png


Record 完了!

image.png

Stopボタンを押して完了させます。


Play

image.png

Play ボタンで実行!1件登録完了しました。

image.png
Play(Loop)というボタンで、[Max]回実行できます。
3件登録完了しました。


Macroを保存

image.png
作成したMacroには、名前をつけて保存できます。


Macroを編集

image.png
作成したMacroは編集することができます


コマンド一覧

Macroを編集するときに使えるコマンドです。
http://wiki.imacros.net/Command_Reference


まとめ

  • 自動化できない作業の暫定対応として、使用してみてはいかがでしょうか
  • Chrome版、IE版もあるらしいのですが、Chrome版は安定してなかったので、Firefox版がオススメです。
9
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
12