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

Is it possible to hide the browser in Selenium RC?

I am using Selenium RC to automate some browser operations but I want the browser to be invisible. Is this possible? How? What about Selenium Grid? Can I hide the Selenium RC window also?
Amit
  • 33,847
  • 91
  • 226
  • 299
87
votes
12 answers

Capturing JavaScript error in Selenium

Is there a way to capture errors occurring in the DOM in Selenium and probably flag the same as an error in the page? To give a brief example, let's say I'm trying to bind an event on a non-existing HTML control, my browser throws an error saying:…
Baz1nga
  • 15,485
  • 3
  • 35
  • 61
85
votes
16 answers

Page scroll up or down in Selenium WebDriver (Selenium 2) using java

I have written the following code in Selenium 1 (a.k.a Selenium RC) for page scrolling using java: selenium.getEval("scrollBy(0, 250)"); What is the equivalent code in Selenium 2 (WebDriver)?
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
64
votes
10 answers

Selenium testing without browser

I use Selenium RC for testing. Now to perform a load test, I want to run parallel test cases. Is there any way to run them without opening a browser?
Mohyt
  • 990
  • 2
  • 10
  • 26
49
votes
19 answers

Clicking at coordinates without identifying element

As part of my Selenium test for a login function, I would like to click a button by identifying its coordinates and instructing Selenium to click at those coordinates. This would be done without identifying the element itself (via id, xpath, etc). I…
Nathan Katz
  • 739
  • 1
  • 7
  • 12
46
votes
1 answer

Pass command line arguments to JUnit test case being run programmatically

I am attempting to run a JUnit Test from a Java Class with: JUnitCore core = new JUnitCore(); core.addListener(new RunListener()); core.run(classToRun); Problem is my JUnit test requires a database connection that is currently hardcoded…
Nick Vallely
  • 1,396
  • 1
  • 13
  • 18
46
votes
7 answers

Checking HTTP Status Code in Selenium

How to get the HTTP status code in Selenium? E.g. so I can test that if the browser requests /user/27 and no user with ID=27 exists, an HTTP 404 is returned? My primary interest is Selenium RC, but if someone knows the answer for "normal" selenium,…
Pete
  • 12,206
  • 8
  • 54
  • 70
37
votes
5 answers

Difference between Selenium RC and WebDriver

What's the basic difference between Selenium RC and WebDriver?
Muna
  • 453
  • 2
  • 5
  • 7
37
votes
11 answers

Get PID of Browser launched by selenium

I would like to get the PID of the browser launched by selenium. Is there any way to get it done?
36
votes
4 answers

Help me improve my continuous deployment workflow

I've been developing a workflow for practicing a mostly automated continuous deployment cycle for a PHP project. I'd like some feedback on possible process or technical bottlenecks in this workflow, suggestions for improvement, and ideas for how to…
Josh Smith
  • 14,674
  • 18
  • 72
  • 118
33
votes
3 answers

what's the relationship between Selenium RC and WebDriver?

I can see that since selenium 2.0, WebDriver and Selenium RC are packaged together for download. Now I primarily use WebDriver, but can I bring in Selenium RC in my testing scripts from now and then? Is there anything that Selenium RC is capable of…
zihaoyu
  • 5,483
  • 11
  • 42
  • 46
30
votes
7 answers

How to press/click the button using Selenium if the button does not have the Id?

I have 2 buttons Cancel and Next button on the same page but it has only one id (see the below code). I wanted to press Next but every time it is identifying the cancel button only not Next button. How to resolve this issue? …
ChanGan
  • 4,254
  • 11
  • 74
  • 135
28
votes
3 answers

What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'?

What are the Implementations differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'. Following is the link from SeleniumHQ.org website…
ABCDEFG
  • 789
  • 7
  • 13
  • 21
28
votes
6 answers

How can I count the number of elements that match my CSS selector?

I am trying to use SeleniumRC to test my GWT App and am trying to match elements using CSS selectors. I want to count the number of enabled buttons in the following HTML. A button is enabled if it is under a with class="x-panel-btn-td " and…
Nirmal Patel
  • 5,128
  • 8
  • 41
  • 52
27
votes
7 answers

"IEDriverServer does not exist" error during running Selenium test with C# in Windows 7

I'm working on Automation framework using WebDriver with C#. Its working fine with Firefox but not with IE. I am getting the following error: IEDriverServer.exe does not exist-The file c:\users\administrator\documents\visual studio…
Pat
  • 727
  • 1
  • 10
  • 22
1
2 3
92 93