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
15
votes
7 answers

Testing a "Dojo" web application with Selenium

Has anyone done some extensive automation with Selenium and a Dojo-heavy web app? I'm looking for any issues or problem that you might have run into or issues related directly to the combination of Selenium and Dojo.
StefanE
  • 7,578
  • 10
  • 48
  • 75
15
votes
4 answers

Selecting an element with xpath and Selenium

I have HTML which looks basically like the following: ... Sign in ... The following xpath in Selenium fails to find an element: //a[contains(text(), 'Sign in') and…
cgp
  • 41,026
  • 12
  • 101
  • 131
14
votes
6 answers

Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC

Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC Hi, I want to JS code coverage done by my Selenium Test Suite Is there any code coverage tool which can be integrated with my existing selenium…
Abhinav Garg
  • 1,642
  • 3
  • 22
  • 41
14
votes
6 answers

How do I get the response headers in Selenium?

How can I get request/response logs in selenium? I have an ajax call that returns login information, and whenever I try to capture it via: selenium.captureNetworkTraffic("json"); it returns only client-side items (like images .pn), but not the…
sasikumar
  • 567
  • 2
  • 8
  • 28
13
votes
1 answer

Is it possible to run Selenium scripts without having an X server running, too?

I have a python script that uses selenium RC; specifically webdriver. I would love to have the script run as a post-commit hook, ideally through IE, Safari (if possible), Chrome & Firefox. But I'm not sure what I'd need to do, since every time I…
Zack Burt
  • 8,257
  • 10
  • 53
  • 81
13
votes
2 answers

What to use instead of CONTAINS() in CSS3

Question about automation. I use Selenium RC. I upgraded my FF to 3.6.18 and it seems that it can't find any locators which have "contains()" inside I've read alot of forums. It's a known problem, but I did not find any solution. So what to use…
Pasha
  • 131
  • 1
  • 1
  • 3
13
votes
3 answers

How do I use the HTMLUnit driver with Selenium from Python?

How do I tell Selenium to use HTMLUnit? I'm running selenium-server-standalone-2.0b1.jar as a Selenium server in the background, and the latest Python bindings installed with "pip install -U selenium". Everything works fine with Firefox. But I'd…
frabcus
  • 919
  • 1
  • 7
  • 18
13
votes
5 answers

How to use regex in selenium locators

I'm using selenium RC and I would like, for example, to get all the links elements with attribute href that match: http://[^/]*\d+com I would like to use: sel.get_attribute( '//a[regx:match(@href, "http://[^/]*\d+.com")]/@name' ) which would…
Guy
  • 14,178
  • 27
  • 67
  • 88
12
votes
1 answer

"Could not connect to the Selenium RC server" after some time of executing script

I have got a test case in my test class and some problems with it. I run the script from console. The script is executed to a certain point and then the test fails with error: Could not connect to the Selenium RC server. Here is log from…
faramka
  • 2,164
  • 1
  • 18
  • 21
12
votes
11 answers

Firefox windows don't close after Selenium test has run

I've been running my selenium tests using selenium rc for about 6 months and suddenly the firefox windows selenium opens do not close when the test is finished. I am using a specific firefox profile and had not updated my selenium rc jar. I thought…
Gerard
  • 4,818
  • 5
  • 51
  • 80
12
votes
4 answers

Firefox bug with Selenium - Can't access dead object

I've tried to run my tests with Selenium 2 and Firefox 19. One of this tests causes an error "ERROR: Command execution failure. The error message is: can't access dead object". I'm reading about it, it seems like a bug in newest Firefox's versions.…
discostu
  • 291
  • 1
  • 5
  • 15
12
votes
2 answers

Selenium IDE: How to Pass Variables

I have 3 different accounts in a website that I want to login and print a report every single day. I've done a Selenium IDE recording that allows me to login and print the report, however, every day I have to change the variable 3 times (for the 3…
donald
  • 23,587
  • 42
  • 142
  • 223
11
votes
2 answers

How to reuse a selenium browser session

I'm trying to access an existing selenium browser session from a separate python process. I'm able to get this working within the same python script, but when I break the reuse logic out to a separate script, it fails with the error…
opike
  • 7,053
  • 14
  • 68
  • 95
11
votes
4 answers

How to use unicode inside an xpath string? (UnicodeEncodeError)

I'm using xpath in Selenium RC via the Python api. I need to click an a element who's text is "Submit »" Here's the error that I'm getting: In [18]: sel.click(u"xpath=//a[text()='Submit…
GJ.
  • 5,226
  • 13
  • 59
  • 82
11
votes
2 answers

Selenium and :hover css

Using selenium-rc and the java client, I want to test a menu which opens when the user moves the mouse over it. It closes when the mouse leaves the menu. This is done using :hover css, without any javascript. In selenium, there are many methods for…
Moritz Both
  • 1,598
  • 1
  • 13
  • 21
1 2
3
92 93