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
6
votes
1 answer

Selenium: How to click an HTML button element?

I have button on the page that being used as a link to another page. So when the user clicks the button they are redirected to the right page. I am using the Selenium extension for PHPUnit and I would like to test that the button is correctly…
Andrew
  • 227,796
  • 193
  • 515
  • 708
6
votes
3 answers

Selenium: How to select an option from a select menu?

I am writing a Selenium test in PHP using the PHPUnit Selenium extension. I know how to type something into a text field: $this->type('fieldName', 'value'); But how do I select an option from a drop-down menu?
Andrew
  • 227,796
  • 193
  • 515
  • 708
6
votes
2 answers

What is the equivalent code of selenium.waitForPageToLoad("30000") in Selenium WebDriver?

The following is the java code to wait for a page loading in Selenium RC: selenium.waitForPageToLoad("30000"); What is the equivalent java code in Selenium WebDriver?
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
6
votes
4 answers

TestNG Groups: Can we include two group names and create one group to run tests?

I have following testng test methods. @Test(groups = {"tsg1.0","smoke"}) public void testLoginWithInvalidCredentials(String usernameValue, String passwordValue){ /*Print something*/ } @Test(groups = {"tsg1.0"}) public…
Mike
  • 899
  • 9
  • 27
  • 45
6
votes
1 answer

Capturing browsers with Selenium RC

I want to run UI tests using browserfarms like BrowserStack. We are currently using BS to run Unit tests via JsTestDriver. So starting the server, letting a bunch of browsers created by the browserfarm connect to the jstd server and then execute the…
zhujik
  • 6,514
  • 2
  • 36
  • 43
6
votes
4 answers

How to select an element from a menu using Webdriver Selenium ? The Menu drop down shows up on Mouse Over?

How to select an element from a menu using Webdriver Selenium ? The Menu drop down shows up on Mouse Over?
user1511808
  • 65
  • 1
  • 3
  • 7
6
votes
13 answers

How to enter text into tinymce text area using Selenium RC for Eclipse Java

I'm currently trying to automate test cases where I need to enter values for a required Text Area field. The text area uses TinyMCE 3.4.9 I found a blog online that suggested selectFrame (iFrame containing tinymce) focus (tinymce) type (tinymce,…
Josh
  • 61
  • 1
  • 2
6
votes
2 answers

Best practice for organizing selenium tests and unit tests

So I am experimenting with the introduction of selenium unit tests in django 1.4 in a couple of projects I am working on. The standard way to run my unit tests are simply to do ./manage.py test and I use django-ignoretests to exclude specific django…
Calvin Cheng
  • 35,640
  • 39
  • 116
  • 167
5
votes
2 answers

Trouble in launching of firefox browser using selenium for MAC OS

I am using Selenium to test a website in Java and trying to run it in Firefox on a MAC. But when I am trying to execute the code below Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.example.com/"); I am getting…
Aspirant
  • 2,238
  • 9
  • 31
  • 43
5
votes
3 answers

type into iframe in selenium

I need to type data into an iframe. I referred to Typing in a IFrame with Selenium IDE but selenium.selectFrame() returns: Element not found error and no css has been defined for the iframe. Using firebug: