标题: 请高手指点一下,我运行后,浏览器自动关闭了,日志如下: [打印本页] 作者: SZFrank2007 时间: 2010-5-20 00:38 标题: 请高手指点一下,我运行后,浏览器自动关闭了,日志如下: 00:32:22.145 INFO - Java: Sun Microsystems Inc. 14.3-b01
00:32:22.147 INFO - OS: Windows 7 6.1 x86
00:32:22.177 INFO - v2.0 [a2], with Core v2.0 [a2]
00:32:22.589 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
00:32:22.594 INFO - Version Jetty/5.1.x
00:32:22.597 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
00:32:22.599 INFO - Started HttpContext[/selenium-server,/selenium-server]
00:32:22.599 INFO - Started HttpContext[/,/]
00:32:22.820 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@15c7850
00:32:22.821 INFO - Started HttpContext[/wd,/wd]
00:32:22.866 INFO - Started SocketListener on 0.0.0.0:4444
00:32:22.866 INFO - Started org.openqa.jetty.jetty.Server@1a5ab41
00:32:23.080 INFO - Checking Resource aliases
00:32:23.092 INFO - Command request: getNewBrowserSession[*firefox, http://www.baidu.com, ] on session null
00:32:23.105 INFO - creating new remote session
00:32:23.401 INFO - Allocated session 56414d6636134178bfdba7ad31cbad86 for http://www.baidu.com, launching...
00:32:23.551 INFO - Preparing Firefox profile...
不是64位
C
DetourRestoreAfterWith
ProcessAttach
ThreadAttach
00:32:28.588 INFO - Launching Firefox...
00:32:37.405 INFO - Got result: OK,56414d6636134178bfdba7ad31cbad86 on session 56414d6636134178bfdba7ad31cbad86
00:32:37.429 INFO - Command request: open[/, ] on session 56414d6636134178bfdba7ad31cbad86
00:32:41.186 INFO - Got result: OK on session 56414d6636134178bfdba7ad31cbad86
00:32:41.198 INFO - Command request: type[//input[@name='wd'], selenium] on session 56414d6636134178bfdba7ad31cbad86
00:32:41.360 INFO - Got result: OK on session 56414d6636134178bfdba7ad31cbad86
00:32:41.366 INFO - Command request: click[//input[@id='su'], ] on session 56414d6636134178bfdba7ad31cbad86
00:32:41.566 INFO - Got result: OK on session 56414d6636134178bfdba7ad31cbad86
00:32:41.574 INFO - Command request: waitForPageToLoad[3000, ] on session 56414d6636134178bfdba7ad31cbad86
00:32:44.402 INFO - Got result: OK on session 56414d6636134178bfdba7ad31cbad86
00:32:44.575 INFO - Shutting down...
00:32:44.623 INFO - Stopping Acceptor ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=4444]作者: goal1860 时间: 2010-6-7 21:13
你有selenium.stop,浏览器当然自动关闭了。