NightWatch.jsをIEでやる時に起こりがちなエラー

# NightWatch.js×IE

テストフレームワークのNightWatch.jsについて、どうしても（どうしても）IEでやらなくちゃいけない方へ、起こりがちなエラーについて書かせていただきます。

# ①拡大率は100%じゃないとダメ
## 拡大率を100%にする

Internet Explorerを開き、右側の歯車アイコンをクリック

拡大を100%に設定する

参考サイト
https://stackoverflow.com/questions/12034969/internetexplorerdriver-zoom-level-error

## 参考：エラー内容

```powershell
[Test] Test Suite
=================
   Response 500 POST /wd/hub/session (3594ms)
   { value:
      { error:
         [ 'Build info: version: \'3.141.59\', revision: \'e82be7d358\', time: \'2099-99-99T99:99:99\'',
           'System info: host: \'DESKTOP-ALG6RFH\', ip: \'***.***.***.***\', os.name: \'Windows 10\', os.arch: \'x86\', os.version: \'10.0\', java.version: \'1.8.0_201\'',
           'Driver info: driver.version: unknown',
           'remote stacktrace: ' ],
        message:
         'Unexpected error launching Internet Explorer. Browser zoom level was set to 125%. It should be set to 100%' },
     status: 33 }
   An occurred error while retrieving a new session: "Unexpected error launching Internet Explorer. Browser zoom level was set to 125%. It should be set to 100%"
       at endReadableNT (_stream_readable.js:1094:12)
       at process._tickCallback (internal/process/next_tick.js:63:19)
_________________________________________________

TEST FAILURE: 1 error during execution 0 tests failed, 0 passed. 5.401s

 × test

  An occurred error while retrieving a new session: "Unexpected error launching Internet Explorer. Browser zoom level was set to 125%. It should be set to 100%"
       at endReadableNT (_stream_readable.js:1094:12)
       at process._tickCallback (internal/process/next_tick.js:63:19)

   SKIPPED:
   - Demo
```

```powershell
message:
         'Unexpected error launching Internet Explorer. Browser zoom level was set to 125%. It should be set to 100%'
```

# ②保護モードが統一されていない
## 保護モードを統一する

インターネットオプション＞セキュリティ

インターネット、ローカルイントラネット、信頼済みサイト、制限付きサイト

の保護モードを統一（有効に揃えるのを推奨）、ブラウザを一旦閉じて設定完了

参考サイト
https://stackoverflow.com/questions/38222259/unable-to-launch-ie-browser-in-selenium-webdriver

## 参考：エラー内容

```powershell
[Test] Test Suite
=================
   Response 500 POST /wd/hub/session (1508ms)
   { value:
      { error:
         [ 'Build info: version: \'3.141.59\', revision: \'e82be7d358\', time: \'2099-99-99T99:99:99\'',
           'System info: host: \'DESKTOP-ALG6RFH\', ip: \'***.***.***.***\', os.name: \'Windows 10\', os.arch: \'x86\', os.version: \'10.0\', java.version: \'1.8.0_201\'',
           'Driver info: driver.version: unknown',
           'remote stacktrace: ' ],
        message:
         'Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.' },
     status: 33 }
   An occurred error while retrieving a new session: "Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones."
       at endReadableNT (_stream_readable.js:1094:12)
       at process._tickCallback (internal/process/next_tick.js:63:19)
_________________________________________________

TEST FAILURE: 1 error during execution 0 tests failed, 0 passed. 3.072s

 × test

  An occurred error while retrieving a new session: "Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones."
       at endReadableNT (_stream_readable.js:1094:12)
       at process._tickCallback (internal/process/next_tick.js:63:19)

   SKIPPED:
   - Demo
```

```powershell
message:
         'Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.'
```