2012-11-19 243 views
0

我推出使用無法啓動的Chrome瀏覽器中的硒

selenium = new DefaultSelenium("localhost", 4444, "*googlechrome", 
        "https://example.com/"); 

Chrome瀏覽器,但我得到一個彈出與下面的消息,並凍結:

管理員已在此安裝了谷歌瀏覽器系統,並可供所有用戶使用。系統級Google Chrome將立即替換您的用戶級安裝。

控制檯登錄,直至凍結點:

Server started 
16:06:37.792 INFO - Command request: getNewBrowserSession[*googlechrome, https://example.com/, ] on session null 
16:06:37.796 INFO - creating new remote session 
16:06:38.081 INFO - Allocated session beb925cd0418412dbe6319fedfb28614 for https://example.com/, launching... 
16:06:38.082 INFO - Launching Google Chrome... 

有什麼建議?

回答

3

嘗試過一起這樣的瀏覽器的名稱給您的鍍鉻EXE的位置:

selenium=new DefaultSelenium("localhost", 4444, "*googlechrome C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe", "https://example.com"); 
相關問題