0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

slimerjsでコマンドライン引数を取得するには

Posted at

背景

WebGLなページをXvfb経由で取得したかったので、Slimerjsにたどり着いた。

コマンドライン引数を取得

var p1 = phantom.args[0];
slimer.exit()

なんかが、すぐ紹介されていて、Phantomjs互換なAPIとの紹介を見て、

slimer.args

としたが、undefinedで少し焦った。

コマンドライン引数の取得APIは、まさにphantomjsのAPIと
全く同じだった。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?