Setting up Selenium RC server in Windows


1. Download latest Java SE from http://java.sun.com/ and install
2. Download latest version of Selenium RC from and extract
3. Create a folder named Selenium at C:\Program Files\Java\jdk1.6.0_03\bin
4. Copy all files under Selenium-server-0.9.2 which you will find in the extracted folder and paste in the newly created folder
5. From Command prompt run the following commands:

cd \
cd C:\PROGRA~1\Java\jdk1.6.0_03\bin
java -jar .\Selenium\selenium-server.jar -interactive

If you see the following messages at the end of the console, you are quite confirm that the Selenium server is running fine:

Entering interactive mode… type Selenium commands here (e.g: cmd=open&1=http:/
/www.yahoo.com)






Comments



1
Author:  Sid | Date:  January 22, 2008 | Time:  12:04 am

Didn’t work. This is the output that I’ve got. Any idea? :-\

c:\Program Files\Java\jre1.6.0_03\bin>java -jar \selenium-server-0.9.2\selenium-
server.jar -interactive
13:00:17.798 INFO - Java: Sun Microsystems Inc. 1.6.0_03-b05
13:00:17.800 INFO - OS: Windows Vista 6.0 x86
13:00:17.804 INFO - v0.9.2 [2006], with Core v0.8.3 [1879]
13:00:17.879 INFO - Version Jetty/5.1.x
13:00:17.881 INFO - Started HttpContext[/selenium-server/driver,/selenium-server
/driver]
13:00:17.884 INFO - Started HttpContext[/selenium-server,/selenium-server]
13:00:17.885 INFO - Started HttpContext[/,/]
13:00:17.897 INFO - Started SocketListener on 0.0.0.0:4444
13:00:17.898 INFO - Started org.mortbay.jetty.Server@13e205f
Entering interactive mode… type Selenium commands here (e.g: cmd=open&1=http:/
/www.yahoo.com)
cmd=open&1=http://www.google.com
13:01:24.421 INFO - —> Requesting http://localhost:4444/selenium-server/driver
?cmd=open&1=http://www.google.com&sessionId=
Connection refused: connect
cmd=open&1=http://www.google.com
13:01:41.645 INFO - —> Requesting http://localhost:4444/selenium-server/driver
?cmd=open&1=http://www.google.com&sessionId=
Connection refused: connect
cmd=open&1=http://www.onlinesid.com
13:01:48.879 INFO - —> Requesting http://localhost:4444/selenium-server/driver
?cmd=open&1=http://www.onlinesid.com&sessionId=
Connection refused: connect

2
Author:  Tanzim Saqib | Date:  January 25, 2008 | Time:  5:24 pm

Hey Sid. You first need to create a session which will provide you a session id. Use that id in the later operations.



Write a Comment

Note: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>