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
8
votes
2 answers

howto run together multiple instance of selenium browser

Is it possible to run together multiple instance of selenium browsers and each one will work for themselve which will increase speed? i can run one like: ISelenium selenium = new DefaultSelenium("localhost", 4444, "*chrome",…
senzacionale
  • 20,448
  • 67
  • 204
  • 316
8
votes
3 answers

How to run Selenium Java tests with TestNG programmatically?

I am using Selenium RC with Java using TestNG as Test Framework. I'm using Eclipse as IDE. I want to invoke TestNG from my own program very easily. How can I do that?
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
8
votes
2 answers

Selenium-rc: How do you use CaptureNetworkTraffic in python

I've found many tutorials for selenium in java in which you first start selenium using s.start("captureNetworkTraffic=True"), but in python start() does not take any arguments. How do you pass this argument? Or don't you need it in python?
Guy
  • 14,178
  • 27
  • 67
  • 88
8
votes
4 answers

Flash automation using Selenium RC

I'm struggling a lot to automate Flash using Selenium RC. Can any one please give me a sample Flash application code (methods) and the Selenium RC code to automate the same.
TestUser
  • 501
  • 4
  • 7
  • 17
8
votes
1 answer

Does TestNG guarantee @BeforeSuite methods are executed before @BeforeTest methods?

BACKGROUND: My goal is to code a TestNG-Selenium system that runs self-contained (no strings to Maven or Ant plugins; just Java). It must allow for test cases to accept parameters including the browser and the domain URL. When the TestRunner…
Aaron
  • 999
  • 2
  • 9
  • 21
8
votes
1 answer

Selenium RC:How to launch Interactive testing with Multiple browsers

I want to automate this scenario. UserA assign an item to UserB, who gets an alert message. In order to do this I want to have two different browsers launched with different accounts to test this interaction. Is is possible to do this? If yes, how?
onesith
  • 411
  • 2
  • 5
  • 8
8
votes
2 answers

What is the best way to assert redirections in Selenium?

I am writing a selenium test and I need to assert that the page is redirected. How should I verify this? What would be the best way? I am using PHPUnit and the PHPUnit_Extensions_SeleniumTestCase.
Andrew
  • 227,796
  • 193
  • 515
  • 708
8
votes
2 answers

How do you test a reactjs web app with selenium?

I have a web app using React and I'm trying to create some tests using Selenium RC. I'm finding though that when Selenium changes the values of fields, events are not properly fired. I know this is a somewhat typical problem as evidenced by the…
Ilion
  • 6,772
  • 3
  • 24
  • 47
8
votes
1 answer

Using Selenium for selecting an option on a select with optgroup

I'm trying to select a value in a select element. I'm using Selenium RC (Java) to run the test cases. I understand that the code for selecting a value is given by: selenium.select("locator", "value=REQUIRED VALUE") I'm unable to select the desired…
Mugen
  • 1,417
  • 5
  • 22
  • 40
8
votes
2 answers

Got "you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer" error

I got this below error while using Selenium RC for Google Chrome you are using unsupported command-line flag: --disable-web-security. Stability and security will suffer. I don't know whats the issue with chrome.
Gopi
  • 101
  • 2
  • 5
8
votes
3 answers

How to close a browser on a selenium RC server which lost it's client

suppose a client starts a selenium session on an RC server, but at the middle of the session the client "went away". The browser will remain open, and eventually, after enough such dropped sessions, there will be enough "orphan" browsers to slow…
olamundo
  • 23,991
  • 34
  • 108
  • 149
8
votes
7 answers

Multiple buttons with same type and id

I'm new to Selenium. Below is my code. I have 3 buttons with the same type, id and value. How do I click on each of the buttons? Can anyone help me with the XPath?
cxyz
  • 823
  • 8
  • 19
  • 37
8
votes
3 answers

Equivalent code of selenium.refresh() in Selenium WebDriver (Selenium 2) using Java

In Selenium RC, I used the following code using Java for refresh on the browser: selenium.refresh(); What is the equivalent code for refresh in WebDriver?
Nazifa Chowdhury
  • 198
  • 3
  • 5
  • 13
8
votes
4 answers

Is there any method in WebDriver with Java for controlling speed of browser?

When I use Selenium RC there is a method setSpeed as: selenium.setSpeed("500"); What is the way to control speed of browser in Selenium WebDriver?
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
8
votes
7 answers

Press Enter Key in Selenium RC with C#

How to press Enter using Selenium RC using C#? I am working with a SearchBox using Selenium. In which I have to type some name and I have to press Enter to search. There is no Submit button. So, I must use Enter. I tried something like…
Ranadheer Reddy
  • 4,202
  • 12
  • 55
  • 77