InternetExplorerDriver Pitalium改変版について

150 views
Skip to first unread message

nakashima

unread,
Aug 9, 2017, 1:27:50 AM8/9/17
to hifive User Group
バグ報告・環境依存の問題と思われる場合は、以下の項目をご記入ください。
 
--------------------------------------------------------------------
【hifiveのバージョン】Pitalium 1.2.0
【ブラウザおよびバージョン】IE11 (11.483.15063.0)
【ブラウザの動作OS】windows10
--------------------------------------------------------------------
 
お世話になります。
中島と申します。

Pitaliumに含まれているInternetExplorerDriver Pitalium改変版を使用した場合に
テストの実行時にエラーが発生します。

具体的には、PtlTestBaseクラスのsetUpを実行しセッションを生成するところで
nodeからエラー(No enum constant org.openqa.selenium.Proxy.ProxyType.)を返され失敗となります。
capabilities.jsonのproxyは指定しておらず、nodeへはデフォルト値("org.openqa.grid.selenium.proxy.DefaultRemoteProxy")が
通知されています。
また、SeleniumHQで公開されているIEDriverServerを使用すると発生しません。


考えられる原因などありましたら、ご教授いただければ幸いです。

sakaim

unread,
Aug 10, 2017, 1:51:39 AM8/10/17
to hifive User Group
中島さん

お問い合わせありがとうございます。

ご報告いただいたエラーですが、
・selenium-server-standalone-3.4.0.jar
・IEDriverServer_h5mod_x64_2.53.0.exe
の組み合わせで再現することを確認いたしました。
今利用されているバージョンは上記で相違ないでしょうか?

こちらは、selenium-serverとIEDriverServerの相性の問題と思われます。
当面のワークアラウンドとしては、以下のいずれかの方法で動作させることが可能ですので
ご検討いただけますでしょうか。

1) IEノードのみ、selenium-server-standalone-3.3.1.jar を利用する(Win7, IE11で動作確認済) 

2) 改変版ではなく、SeleniumHQで公開されている最新のIEDriverServerを利用する
# スクリーンショットの右端に2pxの黒い線が入るようになりますが、許容できる場合

よろしくお願いいたします。


2017年8月9日水曜日 14時27分50秒 UTC+9 nakashima:

nakashima

unread,
Aug 21, 2017, 1:15:43 AM8/21/17
to hifive User Group

sakaim様

中島です。
回答有難うございます。

>・selenium-server-standalone-3.4.0.jar
>・IEDriverServer_h5mod_x64_2.53.0.exe
上記のバージョンで相違ありません。
こちらの組み合わせは相性の問題がある旨、承知しました。


>1) IEノードのみ、selenium-server-standalone-3.3.1.jar を利用する(Win7, IE11で動作確認済) 
上記の方法を試しましたが、エラーとなってしましました。
重ねての質問となり申し訳ありませんが、考えられる原因などありましたら
ご教授いただければ幸いです。

[環境]
--------------------------------------------------------------------
【hifiveのバージョン】Pitalium 1.2.0
【ブラウザおよびバージョン】IE11 (11.0.9600.18762)
【ブラウザの動作OS】windows7 (64bit)

【ハブサーバー】selenium-server-standalone-3.4.0.jar
【ノードサーバー】selenium-server-standalone-3.3.1.jar
【WEBドライバー(IE)】IEDriverServer_h5mod_x64_2.53.0.exe (pitalium 1.2.0に同梱)

※なお、同じ環境でSeleniumHQで公開されている最新のIEDriverServerを使用すると
 エラーは発生しない。
--------------------------------------------------------------------

[トレースログ]
"SampleTest.java"は自作のソースで、27行目でPtlTestBaseクラスのsetUpを実行しています。
--------------------------------------------------------------------
org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'DESKTOP', ip: '192.168.1.230', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_131'
Driver info: driver.version: PtlInternetExplorerDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:174)
at com.htmlhifive.pitalium.core.selenium.PtlWebDriver.<init>(PtlWebDriver.java:141)
at com.htmlhifive.pitalium.core.selenium.PtlInternetExplorerDriver.<init>(PtlInternetExplorerDriver.java:37)
at com.htmlhifive.pitalium.core.selenium.PtlWebDriverFactory$PtlInternetExplorerDriverFactory.createWebDriver(PtlWebDriverFactory.java:292)
at com.htmlhifive.pitalium.core.selenium.PtlWebDriverFactory.getDriver(PtlWebDriverFactory.java:142)
at com.htmlhifive.pitalium.core.rules.AssertionView$4.get(AssertionView.java:213)
at com.htmlhifive.pitalium.core.rules.AssertionView$4.get(AssertionView.java:210)
at com.htmlhifive.pitalium.core.selenium.PtlWebDriverManager.getWebDriver(PtlWebDriverManager.java:146)
at com.htmlhifive.pitalium.core.rules.AssertionView.createDriver(AssertionView.java:209)
at com.htmlhifive.pitalium.core.PtlTestBase.setUp(PtlTestBase.java:96)
at com.htmlhifive.pitalium.sample.SampleTest.setUp(SampleTest.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at com.htmlhifive.pitalium.junit.ParameterizedTestWatcher$1.evaluate(ParameterizedTestWatcher.java:43)
at com.htmlhifive.pitalium.junit.RunParameterizedRules.evaluate(RunParameterizedRules.java:36)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: No enum constant org.openqa.selenium.Proxy.ProxyType.
at java.lang.Enum.valueOf(Enum.java:238)
at org.openqa.selenium.Proxy$ProxyType.valueOf(Proxy.java:33)
at org.openqa.selenium.Proxy.<init>(Proxy.java:66)
at org.openqa.selenium.remote.ProtocolHandshake$Result.lambda$static$0(ProtocolHandshake.java:401)
at org.openqa.selenium.remote.ProtocolHandshake$Result.<init>(ProtocolHandshake.java:416)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$1(JsonWireProtocolResponse.java:85)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:93)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$22(ProtocolHandshake.java:365)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:368)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:159)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
... 44 more

--------------------------------------------------------------------


2017年8月10日木曜日 14時51分39秒 UTC+9 sakaim:

sakaim

unread,
Aug 22, 2017, 10:13:59 PM8/22/17
to hifive User Group
中島さん

重ねてご連絡ありがとうございます。

> 1) IEノードのみ、selenium-server-standalone-3.3.1.jar を利用する(Win7, IE11で動作確認済) 
> org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
現在、こちらのエラーが発生することを確認いたしました。

selenium-server-standaloneのバージョンに関わらず発生することから、
IEDriverとIEブラウザ本体の相性問題と思われます。
直近のIE11のアップデートにより、IEDriver2.53で動作しなくなったようです。

恐れ入りますが、当面は
・selenium-server-standalone-3.4.0.jar
・IEDriverServer_x64_3.4.0
の組み合わせで回避いただけますでしょうか。

よろしくお願いいたします。


2017年8月21日月曜日 14時15分43秒 UTC+9 nakashima:

nakashima

unread,
Aug 22, 2017, 10:54:31 PM8/22/17
to hifive User Group
sakaim様

中島です。
調査頂き有難うございます。

>恐れ入りますが、当面は
>・selenium-server-standalone-3.4.0.jar
>・IEDriverServer_x64_3.4.0
>の組み合わせで回避いただけますでしょうか。
承知いたしました。上記組み合わせは問題なく実行できているため
こちらの組み合わせで使用させて頂きます。
ご対応頂き有難うございました。


以上です。


2017年8月23日水曜日 11時13分59秒 UTC+9 sakaim:
Reply all
Reply to author
Forward
0 new messages