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
11
votes
12 answers

how to close selenium hub/grid from command prompt

I start Selenium hub to start Selenium Grid from command prompt on port 4444. Now I start Selenium RC from other command prompt. It shows me error message that "Selenium is already running on port 4444. Or some other service is..." Now I am not able…
tejas trivedi
  • 111
  • 1
  • 1
  • 3
11
votes
4 answers

Selenium locator for

With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look…
Johan Levin
  • 830
  • 1
  • 9
  • 26
10
votes
2 answers

How to start selenium browser with proxy

I am trying to start selenium and selenium's browser with proxy but not getting success. I have used two methods: Properties sysProps = System.getProperties(); sysProps.put("proxySet", "true"); sysProps.put("proxyHost",…
Khoyendra Pande
  • 1,627
  • 5
  • 25
  • 42
10
votes
2 answers

How can automation testing on Silverlight using Selenium be done?

I am looking for a way by which I can automate my application build on Silverlight. I need to use Selenium as required, can anyone tell a process or any good tutorial by which I can achieve what I require. Thanks in advance.
Sumit Gupta
  • 569
  • 1
  • 11
  • 33
10
votes
3 answers

Why is Selenium RC so slow?

For some time I have been investigating Selenium RC in order to do functional testing of my web application. I have now found a test strategy that is so effective, that I do not want to move away from Selenium RC (after spending weeks trying to…
Pete
  • 12,206
  • 8
  • 54
  • 70
10
votes
2 answers

How to run selenium server sessions on different xvfb screens?

My problem is how to get an isolated video streams from SeleniumServer browser instances. Let me explain. I have Selenium Server hub running at Ubuntu Server machine and the Selenium Server node running at the same server so I use the 'headless'…
skavans
  • 374
  • 3
  • 18
10
votes
2 answers

Difference between isElementPresent and isVisible in Selenium RC

What is the difference between element isElementPresent and isVisible in Selenium RC. I get true for selenium.isElementPresent() and selenium.isVisible() If I get false for selenium.isElementPresent() I get Exception on selenium.isVisible()
Harshavardhan Konakanchi
  • 4,238
  • 6
  • 36
  • 54
9
votes
5 answers

How to simulate pressing enter in html text input with Selenium?

In a web interface, I've got a text field. When user enters text and accepts with enter, application performs an action. I wanted to test the behavior with Selenium. Unfortunately, invoking 'keypress' with chr(13) insert representation of the…
Tomo
  • 3,431
  • 5
  • 25
  • 28
9
votes
2 answers

Use Selenium RC directly or Selenium with Robot framework

I have to admit that I fell in love with Selenium for its record-and-play feature as well as the testcase generation functionality for those recorded actions from the IDE. But I am still hesitated to advance to the implementation stage because of…
Daniel
  • 631
  • 10
  • 18
9
votes
6 answers

Selenium wait for download?

I'm trying to test the happy-path for a piece of code which takes a long time to respond, and then begins writing a file to the response output stream, which prompts a download dialog in browsers. The problem is that this process has failed in the…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
9
votes
5 answers

How to iterate through DOM elements that match a css class using xpath?

I'm processing an HTML page with a variable number of p elements with a css class "myclass", using Python + Selenium RC. When I try to select each node with this xpath: //p[@class='myclass'][n] (with n a natural number) I get only the first p…
GJ.
  • 5,226
  • 13
  • 59
  • 82
9
votes
8 answers

Selenium RC > how to upload file using attachFile()

I am using Selenium RC with Junit framework. I am trying to upload a file using attachFile() method. attachFile: (Information collected from selenium API…
Saara
  • 143
  • 1
  • 4
  • 10
9
votes
3 answers

How to disable Flash in selenium remote webdriver

How do I disable the loading of flash objects when using Selenium Remote WebDriver. It will be helpful if I get a solution for the normal webdriver also. Since in most cases the Flash object is loaded by a JavaScript I have tried disabling the…
Panshul
  • 1,064
  • 2
  • 14
  • 33
8
votes
2 answers

How to use addCustomRequestHeader method in selenium?

I was trying to use addCustomRequestHeader method to set a custom header for selenium requests. Given below is the source code Selenium sel = new DefaultSelenium("localhost",4444,"*firefox","http://www.google.com"); …
A.J
  • 4,929
  • 2
  • 27
  • 36
8
votes
3 answers

Jenkins can't launch selenium tests (Timed out waiting for profile to be created)

Jenkins can't launch selenium tests (ubuntu) error 11:26:24.652 INFO - Started org.openqa.jetty.jetty.Server@ab50cd 11:26:24.738 INFO - Preparing Firefox profile... HTML suite exception seen: java.lang.RuntimeException: Timed out waiting for profile…
okcorp
  • 81
  • 1
  • 1
  • 2