Seita developer blog

ユーザ企業に努めるアプリケーションエンジニアがプログラミング、データベース、OS、SNS、ガジェットなどを中心に備忘録変わりに書いていきます。

【Selenium】 IE11でSeleniumを実行したときにはまった話メモ

こんにちわ。REYです。

Seleniumを流したときにはまったことをメモとして残します。

 

■エラー1

1.エラーコード

f:id:rey1229:20170220171341p:plain

org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Browser zoom level was set to 75%. It should be set to 100% (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.84 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-27 00:00:10'

2.原因

IEの拡大表示が100%じゃないことが原因です。100%に戻してください。 

f:id:rey1229:20170220171448p:plain

 

■エラー2

1.エラーコード

f:id:rey1229:20170220171649p:plain

org.openqa.selenium.remote.SessionNotFoundException: 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. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.29 seconds
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-27 00:00:10'

 

2.原因

「保護モードを有効にする」にチェックが入っていない影響です。
「インターネット、ローカル イントラネット、信頼済みサイト、制限つきサイト」すべての「保護モードを有効にする」にチェックをつけてください。

f:id:rey1229:20170220171805p:plain

 

■参考

ちなみにこのメッセージは、SeleniumがWebDriverをつかんだことを指し示しているので、エラーでない

Started InternetExplorerDriver server (32-bit)
2.44.0.0
Listening on port 5917