2012-03-21 1 views
0

Xvfb 및 Selenium 서버를 독립 실행 형으로 실행하는 우분투 컴퓨터 (v2.20.0)가 있습니다. 셀레늄과 함께 phpunit으로 테스트를 실행하려고합니다. 나는 로그의 시작 세션 확인하고 구글 크롬을 열려고하지만 브라우저가 열리지와 파이어 폭스와 함께가는이 모드 같은Xvfb (헤드리스)에서 Selenium을 사용하는 중 오류가 발생했습니다.

Mar 21, 2012 9:27:37 AM org.openqa.grid.selenium.GridLauncher main 
INFO: Launching a standalone server 
0 [main] INFO org.openqa.selenium.server.SeleniumServer - Java: Sun Microsystems Inc. 20.0-b12 
0 [main] INFO org.openqa.selenium.server.SeleniumServer - OS: Linux 3.2.0-8-generic-pae i386 
7 [main] INFO org.openqa.selenium.server.SeleniumServer - v2.20.0, with Core v2.20.0. Built from revision 16008 
178 [main] INFO org.openqa.selenium.server.SeleniumServer - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub 
179 [main] INFO org.openqa.jetty.http.HttpServer - Version Jetty/5.1.x 
180 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/selenium-server/driver,/selenium-server/driver] 
180 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/selenium-server,/selenium-server] 
181 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/,/] 
43119 [main] INFO org.openqa.jetty.util.Container - Started [email protected] 
43120 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/wd,/wd] 
43127 [main] INFO org.openqa.jetty.http.SocketListener - Started SocketListener on 0.0.0.0:4444 
43127 [main] INFO org.openqa.jetty.util.Container - Started [email protected] 
108588 [SocketListener0-0] INFO org.openqa.jetty.util.Credential - Checking Resource aliases 
09:29:26.205 INFO - Command request: getNewBrowserSession[googlechrome, http://localhost:8080/] on session null 
09:29:26.208 INFO - creating new remote session 
09:29:26.227 WARN - Caution: '/usr/bin/google-chrome': file is a script file, not a real executable. The browser environment is no longer fully under RC control 
09:29:26.230 INFO - Allocated session 20de5dfc1d1c492cba1e1cd26234cb14 for http://localhost:8080/, launching... 
09:29:26.231 INFO - Launching Google Chrome... 

에 갇혀 있습니다.

그리고 firefox/chrome 명령을 실행하려고하면 작업이됩니다. Selenium에서 브라우저를 실행할 수없는 이유는 무엇입니까? 우분투에서

답변

관련 문제