2016-10-27 2 views
1

Selenium Test Runで次の問題が発生しています。私は、MacSierra(10.12)プロセッサ2.8 GHz Intel Core i7でテストを作成して実行しています。SeleniumでJavaコードを実行しているときにボルケンキューが検出されました

Eclipse、Selenium、JavaファイルをSeleniumサイトからインストールしました。ここで

は私のコードです:ここでは

package com.some.seleniumproject; 
import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.*; 
import org.openqa.selenium.WebDriver.*; 
import org.openqa.selenium.firefox.*; 

public class sampleTest1 { 
public static void main (String[] args) { 
System.setProperty("webdriver.gecko.driver", "//Library/Java/geckodriver"); 
WebDriver driver=new FirefoxDriver(); 
    String baseUrl = "http://www.seleniumhq.org"; 
    String et = "Selenium - Web Browser Automation"; 
    driver.get(baseUrl); 
    String rt = driver.getTitle(); 
    if (rt.contentEquals(et)) { 
     System.out.println("Title is matched"); 
    } 
     else { 
      System.out.println("Title is not matched"); 
     } 
    driver.close(); 
    } 

} 

はエラーです:

1:

1477536446864 geckodriver INFO Listening on 127.0.0.1:11419 
Oct 26, 2016 7:47:27 PM org.openqa.selenium.remote.ProtocolHandshake createSession 
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end 
1477536448247 mozprofile::profile INFO Using profile path /var/folders/dk/xyw6v2zd1bd5sp8pd_4f8fpw0000gn/T/rust_mozprofile.jDvUQye5JfoO 
1477536448249 geckodriver::marionette INFO Starting browser /Applications/Firefox.app/Contents/MacOS/firefox-bin 
1477536448307 geckodriver::marionette INFO Connecting to Marionette on localhost:56571 
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 
1477536450843 Marionette INFO Listening on port 56571 
1477536453622 Marionette INFO startBrowser dab7ebb7-1664-6943-9cc4-e3817dd3a894 
Oct 26, 2016 7:47:34 PM org.openqa.selenium.remote.ProtocolHandshake createSession 
INFO: Detected dialect: W3C 
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0 

However, the above error maybe, correct result is thrown in the output. 

2:

注:この要素はありませんどちらもソースも添付しました添付のJavaドキュメントであり、Java docが見つかりませんでした。これはステップdriver.close()のためのものです。

Please help. 

答えて

1

このバグはMozilla - https://bugzilla.mozilla.org/show_bug.cgi?id=1304266で報告されています。コメントを読んでください。 libeventの問題のように、記述した問題が発生する可能性があります。

+0

ありがとうございます。問題を解決して10月17日に合併したようです。 – 9009

関連する問題