Mainly there are two components of selenium rc i.e
A Selenium client library provides a programming interface (API), i.e., a set of functions, which run Selenium commands from your own program. Within each interface, there is a programming function that supports each Selenese command.
Installation:
Selenium RC supports various programming languages like java, csharp(C#), python, ruby, php, perl etc. In my explanation I am using java.
Installing Selenium Server:
The Selenium RC server doesn’t require any special installation which is simply a Java jar file (selenium-server-standalone-.jar). Just download the zip file from SeleniumHQ downloads page and extract the server in the desired directory.
Using the Java Client Driver:
Download Selenium java client driver zip from SeleniumHQ downloads page and extract selenium-java-.jar file.
Steps after having both client and server jars
Note: For details about how to configure selenium rc with eclipse go through the link Configuring Selenium RC With Eclipse.
- Selenium Server
- Client libraries
A Selenium client library provides a programming interface (API), i.e., a set of functions, which run Selenium commands from your own program. Within each interface, there is a programming function that supports each Selenese command.
Installation:
Selenium RC supports various programming languages like java, csharp(C#), python, ruby, php, perl etc. In my explanation I am using java.
Installing Selenium Server:
The Selenium RC server doesn’t require any special installation which is simply a Java jar file (selenium-server-standalone-
Using the Java Client Driver:
Download Selenium java client driver zip from SeleniumHQ downloads page and extract selenium-java-
Steps after having both client and server jars
- Open your desired Java IDE (Eclipse, NetBeans, IntelliJ, Netweaver, etc. in my case Eclipse)
- Create a java project.
- Add the selenium-java-
.jar files to your project buildpath. - Write your Selenium test in Java using the selenium-java-client API. The API is presented later in this chapter.
- Run Selenium server from the console.
- Execute your test from the Java IDE or from the command-line.
No comments:
Post a Comment