LoginSignup
0
0

More than 5 years have passed since last update.

PhantomJSでUserAgentをカスタマイズした際エラーが出る場合の対処法

Last updated at Posted at 2017-07-27

検証環境

  • PhantomJS 2.1.1

事象

PhantomJSでUserAgentをカスタマイズすると以下のようなエラーが出る。

'undefined' is not an object (evaluating '(y(a)?y(a).parentWindow||y(a).defaultView:window).getComputedStyle(a,null).MozTransform.match')

対処法

UserAgentにWebKitという文字列を含むようにするとエラーが出なくなる。

参考

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