Sample Selenium RC Test
Sample Selenium RC Test
Selenium RC (Remote Control) is a deprecated component of Selenium that allowed test scripts to be written in various languages and controlled browsers through a server.
Note: Selenium RC has been replaced by Selenium WebDriver, but this example is still useful for legacy systems or learning purposes.
✅ Sample Selenium RC Test in Java
🧰 Prerequisites
Selenium RC Server (selenium-server.jar) must be running:
Firefox must be installed (since this test uses *firefox
).
Selenium Java client driver must be added to your classpath.
💡 Notes
-
DefaultSelenium
connects to the Selenium RC Server. -
selenium.start()
launches the browser. -
selenium.open("/")
opens the homepage (in this case, Google). -
selenium.type()
andselenium.click()
perform actions on elements. -
selenium.getTitle()
retrieves the title of the current page.