2013-07-13 23 views
1

我在我的網站上運行帶有Java/TestNG自動用戶註冊的Selenium Webdriver。 從CSVSelenium Webdriver:連接到目標主機時捕獲到INFO:I/O異常(java.net.BindException):地址已在使用中:connect

一讀,我打開Firefox具有一定的輪廓 後來我有一個循環,並在其中創建一個用戶,並簽署出來,並再次進入註冊頁面並註冊其他用戶,記錄他們出等

它所有的工作,但我得到這些紅色警告,我不知道什麼是他們涉及到:

INFO: I/O exception (java.net.BindException) caught when connecting to the target host: 
Address already in use: connect 

我現在明白,由於下面的答案,那我可能需要關閉()或斷開連接(),但哪些?

的這段代碼是我做一次:

public void setUp(ArrayList<ArrayList<String>> array) throws Exception { 
    long timeoutInSeconds = 30; 
    ProfilesIni profile = new ProfilesIni(); 
    FirefoxProfile ffprofile = profile.getProfile("SELENIUM"); 
    WebDriver driver = new FirefoxDriver(ffprofile); 
    WebDriverWait wait = new WebDriverWait(driver, timeoutInSeconds); 
    driver.manage().window().maximize(); 
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); 
    userSignup(array, driver, wait); 

,這就是我遍歷:

 driver.get("http://asd.asd.com/users/sign_up"); 

而且還有一個CSV文件閱讀器打開的連接,但在方法結束時,在傳遞一組數據之後,我關閉它。

回答

1

This問題解決了這個問題

這是信息級別的消息。不要擔心。

+0

所以我必須關閉()或斷開連接()的東西?我編輯了我的信息 –

+0

我的事情是你的硒服務器有問題。你正在使用哪個版本? –

+0

嘗試將「4444」端口設置爲您的配置文件。 –

相關問題