MacにてSelenium IDE chromeが動かない

868 views
Skip to first unread message

村上勝司

unread,
May 23, 2017, 1:40:48 AM5/23/17
to 日本Seleniumユーザーコミュニティ


Seleniumを導入しようと、自端末にて設定しているのですが、
Selenium IDEがうまく動きません。

詳しい方ご教授頂けないでしょうか。

環境:Mac Sirra 10.12.5
FireFox : 53.0.3(64bit)
Chrome:58.0.3029.110 (64-bit)
Selenium IDE:2.9.1

1.chrome driverをダウンロード
2.JDKをインストール
      JDK 8 for mac をdownloadしインストール
3.selenium-server-standaloneをダウンロード
       selenium-server-standalone-3.4.0.jar
4. 特定のディレクトリに1,2を配置
5.chromediverを起動
     
./chromediver

   Starting ChromeDriver 2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b) on port 9515
   Only local connections are allowed.

6.selenimu-server-standaloneを起動
java -jar selenium-server-standalone-3.4.0.jar -port 9515

14:26:26.676 INFO - Selenium build info: version: '3.4.0', revision: 'unknown'

14:26:26.676 INFO - Launching a standalone Selenium Server

2017-05-23 14:26:26.693:INFO::main: Logging initialized @252ms to org.seleniumhq.jetty9.util.log.StdErrLog

14:26:26.746 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:

 registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC

14:26:26.747 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:

 registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC

14:26:26.747 INFO - Driver class not found: com.opera.core.systems.OperaDriver

14:26:26.747 INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:

Unable to create new instances on this machine.

14:26:26.747 INFO - Driver class not found: com.opera.core.systems.OperaDriver

14:26:26.747 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered

2017-05-23 14:26:26.791:INFO:osjs.Server:main: jetty-9.4.3.v20170317

2017-05-23 14:26:26.832:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@d8355a8{/,null,AVAILABLE}

2017-05-23 14:26:26.865:INFO:osjs.AbstractConnector:main: Started ServerConnector@146ba0ac{HTTP/1.1,[http/1.1]}{0.0.0.0:9515}

2017-05-23 14:26:26.866:INFO:osjs.Server:main: Started @424ms

14:26:26.866 INFO - Selenium Server is up and running


7.FireFoxからSelenimu IDEを起動してchromeを起動するように設定
実行するとalertが表示され、chromeブラウザにてアドレスに「data;」と表示されるだけとなります。
またログは下記が表示されるのですが、設定ミスなのか理由がわからずご教授願えるとありがたいです。

[error] <!DOCTYPE html> 

<html lang="en"> 

    <head> 

        <meta charset="UTF-8"> 

        <link rel="stylesheet" type="text/css" href="/assets/displayhelpservlet.css" media="all"/>

        <link href="/assets/favicon.ico" rel="icon" type="image/x-icon" /> 

        <script src="/assets/jquery-3.1.1.min.js" type="text/javascript"></script> 

        <script src="/assets/displayhelpservlet.js" type="text/javascript"></script> 

        <script type="text/javascript"> var json = Object.freeze('{"version":"3.4.0","type":"Standalone","consoleLink":"/wd/hub"}'); </script> 

    </head> 

<body> 

    <div id="content"> 

        <div id="help-heading"> 

            <h1><span id="logo"></span></h1>

            <h2>Selenium <span class="se-type"></span>&nbsp;v.<span class="se-version"></span></h2> 

        </div>

        <div id="content-body">

            <p> Whoops! The URL specified routes to this help page. </p>

            <p> For more information about Selenium 

            <span class="se-type"></span>

            please see the 

            <a class="se-docs">docs</a> and/or visit the 

            <a class="se-wiki">wiki</a>. 

            <span id="console-item"> Or perhaps you are looking for the Selenium 

            <span class="se-type"></span> 

            <a class="se-console">console</a>.

            </span> 

            </p> 

            <p> Happy Testing! </p> 

        </div> 

        <div> 

            <footer id="help-footer"> Selenium is made possible through the efforts of our open source community, contributions from these 

                <a href="https://github.com/SeleniumHQ/selenium/blob/master/AUTHORS">people</a>, and our 

                <a href="http://www.seleniumhq.org/sponsors/">sponsors</a>. 

            </footer> 

        </div>

    </div>

</body> 

</html>



保木本将之

unread,
May 23, 2017, 10:03:49 PM5/23/17
to 日本Seleniumユーザーコミュニティ
こんにちは、保木本です。

上記の手順で試したところ、村上さんと同様な現象を確認しました。

情報追記レベルですが共有させていただきます。
https://github.com/SeleniumHQ/selenium/issues/3773#issuecomment-298679038
こちらの記事を見ていて、selenium-server-standaloneを2.53.1で試して見たところ期待通りに動作しました。

以上です。

村上勝司

unread,
May 23, 2017, 11:16:36 PM5/23/17
to 日本Seleniumユーザーコミュニティ
ありがとうございます。

お陰様でstandaloneサーバーはlogより動く事は確認できました。
ただ、FireFoxのSelenium IDEよりテストケースを実行するとやはり同じようなbig alertがでるのは変わらずの状態です。

1. standalone server を 2.53.1 にダウングレード
2. http://127.0.0.1:9515/wd/hubにてchromeのセッションを作成(standalone serverログは new session が作成されたメッッセージが表示される)
3. FireFoxのAdd on より SeleniumIDEを起動し、テストケースを実行
4. big alertは同様に出力され、URLはdata; と表示される。

2017年5月24日水曜日 11時03分49秒 UTC+9 保木本将之:

保木本将之

unread,
May 24, 2017, 8:32:55 PM5/24/17
to 日本Seleniumユーザーコミュニティ
村上さん

おはようございます。保木もとです。

私の手元の環境では以下のコマンドで実行したところ正常に動作していますがいかがでしょう。(portを4444に指定)
$ java -jar selenium-server-standalone-2.53.1.jar -Dwebdriver.chrome.driver=chromedriver -p 4444

確認としては村上さんが昨日された手順と同様なものです。

1. standalone server を 2.53.1 にダウングレード
2. http://127.0.0.1:4444/wd/hubにてchromeのセッションを作成(standalone serverログは new session が作成されたメッッセージが表示される)
3. FireFoxのAdd on より SeleniumIDEを起動し、テストケースを実行
4. big alertは同様に出力され、正常動作する(open | https://google.com)。



2017年5月24日水曜日 12時16分36秒 UTC+9 村上勝司:

村上勝司

unread,
May 24, 2017, 9:49:07 PM5/24/17
to 日本Seleniumユーザーコミュニティ
保木さん

おはようござます。
色々返答して頂きありがとうございます。

お恥ずかしい限りですが、解決致しました。
原因は、selenium-server-standalone-3.4.0.jarのプロセスが残っており
本来port4444で稼働するべきところが使用されていたのが原因でした。

保木さん同様何度やってもbig alertが出力され解決の糸口を見つけられずにいました。
ps コマンドでchromedriveのプロセスをkillしたりしても事象が変わらず困っていましたが、
javaプロセスは?と思い ps aux | grep java とすると見事に3.4.0.jarがおり、killした後正常に動く事が確認できました。

ご返答ありがとうございました。
2017年5月25日木曜日 9時32分55秒 UTC+9 保木本将之:
Reply all
Reply to author
Forward
0 new messages