Selenium 学习笔记1

今天刚刚接触selenium,查了一些资料,现针对第一天的学习内容进行总结:
由于日后的项目里面会使用java进行相关测试程序的编写,所以选择使用 Selenium Remote Control 。
具体原因可以参看 http://wiki.openqa.org/pages/viewpage.action?pageId=763

 

 

 

1、现在 selenium  相关包  下载,我下载的版本为:selenium-remote-control-1.0.3.zip

解压缩后的目录为:

 

selenium-dotnet-client-driver-1.0.1

 

selenium-java-client-driver-1.0.1

 

selenium-perl-client-driver-1.0.1

 

selenium-php-client-driver-1.0.1

 

selenium-python-client-driver-1.0.1

 

selenium-ruby-client-driver-1.0.1

 

selenium-server-1.0.3

 

这里我使用的是 selenium-java-client-driver-1.0.1 和 selenium-server-1.0.3

selenium-server-1.0.3:是selenium 服务端的包,在使用selenium时候,需要先启动服务端:


cmd >cd  selenium-server-1.0.3
cmd >java -jar selenium-server.jar
在cmd中打印信息 

 

 

cmd>java -jar selenium-server.jar
17:08:57.460 INFO - Java: Sun Microsystems Inc. 16.0-b13
17:08:57.460 INFO - OS: Windows XP 5.1 x86
17:08:57.460 INFO - v1.0-beta-2 [2571], with Core v1.0-beta-2 [2330]
17:08:57.616 INFO - Version Jetty/5.1.x
17:08:57.616 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
17:08:57.632 INFO - Started HttpContext[/selenium-server,/selenium-server]
17:08:57.632 INFO - Started HttpContext[/,/]
17:08:57.679 INFO - Started SocketListener on 0.0.0.0:4444
17:08:57.694 INFO - Started org.mortbay.jetty.Server@52fe85

 

则selenium server 启动成功

启动时候也可以加代理服务器参数:

 

java -Dhttp.proxyHost=192.168.20.6 -Dhttp.proxyPort=3128 -jar selenium-server.jar -multiWindow

 

你可能感兴趣的:(java,PHP,python,XP,Ruby)