Questions tagged [selenium-rc]

Selenium Remote Control - Answer to UI level functional test Web automation

Selenium Remote Control (RC) overcomes the drawbacks imposed by Selenium IDE, i.e. -

  1. Ability to run tests against multiple browsers and not having them limited to only Firefox
  2. Ability to use a real-world programming language rather than using the Selenese constructs of IDE which have very limited programming capabilities
  3. Ability to integrate tests with a variety of programming frame works like - TestNG and JUnit in java
  4. Ability to integrate test with continuous build integration
  5. Ability to execute test in parallel against multiple browsers

Selenium RC contains two entities -

  1. Selenium Server - which is written in Java. Hence you need Java on your system to be able to use Selenium RC and
  2. Selenium Client Drivers - which provide capabilities to write Selenium tests in a variety of languages i.e. - Java, C#, Python, Ruby, Perl, etc.

Selenium Server reads the client instruction and contacts the application server. On receiving a server response it modifies the response, inserts Selenium JavaScriptcode and serves the page back to the browser. Now tests written using the client driver of Selenium interact with the application and arrive at conclusions about the application state to validate it against a predefined set of expected results.

You can download the latest Selenium Standalone server from here.

For more on Selenium RC, refer here.

Selenium RC has officially been deprecated in favour of the more modern .

1388 questions
7
votes
2 answers

Obvious reason to move from Selenium RC to Webdriver.?

From past 4 months am doing automation testing using Selenium RC. But recently i came to know that Selenium RC is deprecated. So many people suggested me to change to Selenium Webdriver. So, can anyboby tell me whats the problem with Selenium RC…
Ranadheer Reddy
  • 4,202
  • 12
  • 55
  • 77
7
votes
2 answers

Read Message From Alert and click on OK

I want to read the message which is there in Alert. Example: If a alert shows "Wrong E-mail address". How to read it? Means i want to store that message in a string. How to click on OK inside Alert...?? How to do it using Selenium ?
Ranadheer Reddy
  • 4,202
  • 12
  • 55
  • 77
6
votes
3 answers

Proxy for selenium rc driver in java

How can i do proxy configuration for selenium in Java? I am connecting to selenium with: Process p = Runtime.getRuntime().exec("java -jar lib/selenium-server.jar"); selenium = new DefaultSelenium("localhost", 4444, "*safari", "www.example.com"); I…
Aspirant
  • 2,238
  • 9
  • 31
  • 43
6
votes
5 answers

Selenium Script For IE

I got this error , while running selenium script for Internet Explorer 9. Exception in thread "main" org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or…
Mohyt
  • 990
  • 2
  • 10
  • 26
6
votes
2 answers

Selenium: How do I assert that a certain element is present in a certain cell of a certain table?

I have a table on my page which is supposed to contain a certain element. I can identify the table by its name (it has a unique name), and I can also identify the element easily. I would like to assert that the element is present on row r, column c…
snakile
  • 52,936
  • 62
  • 169
  • 241
6
votes
2 answers

how to get attribute value using selenium and css

I have the following HTML code: 2 I would like to get what is contained in href, ie, I was looking for a command which would give me "/search/?p=2&q=move&mt=1" value for href. Could someone please help me…
Sunny
  • 129
  • 1
  • 2
  • 10
6
votes
5 answers

Understanding Selenium IDE vs Selenium RC

What is the difference between Selenium IDE and Selenium RC with its functionality?
Nazmul Hasan
  • 6,840
  • 13
  • 36
  • 37
6
votes
2 answers

Selenium: Ajax Testing

Please brief me about the Ajax testing with selenium RC. As in Ajax element not reflect on the view-source, but using firebug we can see the changes in HTML source code. There are two methods associated with it Ajax testing.. 1-The method…
smriti
  • 1,124
  • 5
  • 14
  • 35
6
votes
6 answers

Selenium.click not working on some anchor elements

The application that am working on was recently revamped and as part of that a new JQuery calendar was introduced. I need to click on a link in the calendar to select the time and date. However, Selenium.click is not working. The command gets…
A.J
  • 4,929
  • 2
  • 27
  • 36
6
votes
1 answer

Test browser locale using selenium webdriver

I'm trying to test our website with different accept-language headers. So if accept-language header is fr it shows "bonjour" and if the accept-language header is "en" it shows "hello". I'm doing this with selenium webdriver, however after a…
Ollie
  • 61
  • 2
6
votes
11 answers

When I run the selenium RC script, I am getting Failed to start new browser, Firefox 3 could not be found in the path!

When I run the script, I am getting the below error... I have pasted the firefox location in to system variable path... still i am getting the below error : java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser…
ChanGan
  • 4,254
  • 11
  • 74
  • 135
6
votes
2 answers

How to handle selenium crashes

I am currently automating tests with selenium RC which run every hour. Everything runs smoothly most of the time but there are some times where either firefox will crash or the selenium RC will just hang and because of these two issues the testing…
si-mikey
  • 183
  • 3
  • 10
6
votes
3 answers

How to create cookie using selenium?

I want to create a cookie using selenium. I have seen a method which supports this like selenium.createcookie(arg1,arg0), but I'm a bit confused about the arguments passed. Can anyone please give me an example?
pooh
  • 97
  • 2
  • 3
  • 8
6
votes
3 answers

Using Selenium to test on multiple versions of browsers

I was wondering if anyone is familiar with testing different browser versions using selenium. I know that you can specify which browser to test (using *firefox or *iexplore) but what if I had multiple versions of firefox or IE installed and I…
Ali
  • 61
  • 1
  • 2
6
votes
1 answer

Is there any way to delete an HttpOnly cookie from C# Selenium tests?

I have a set of C# Selenium tests that need to delete a cookie that has the HttpOnly flag set. Unfortunately the DefaultSelenium.GetCookie() and DefaultSelenium.DeleteCookie() commands aren't able to access the cookie, because it has that HttpOnly…
BenA
  • 2,041
  • 1
  • 20
  • 25