--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/MWion8Z_E3AJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.
First of all update to 2.21.0 you are using a very old version of Selenium that was released before FireFox 12, GoogleChrome 18 and the IE driver has been completely rewritten since 2.5.0.
--
Secondly, don’t use the old Selenium RC API. It is deprecated and effectively dead. Switch over to the new Webdriver API.
I’ve tweaked the code you supplied to use WebDriverBackedSelenium which is an interim solution to help people convert from the old Selenium RC API to the new WebDriver API. Using WebDriverBackedSelenium you don’t need to start up any selenium server instances, you can just run the script. Here it is:
https://gist.github.com/2700528
Now I would suggest you instead use WebDriver which would look like this:
https://gist.github.com/2700662
The above is just a direct translation of commands from selenium to WebDriver. It looks a little more verbose but it very clear as to exactly what actions you are performing and the WebElements make it easy to perform additional commands without having to reuse the locator. Ideally you would create a page object for each of the pages which would simplify this even further, but I think a direct translation will be more useful to begin with. For infop on page objects have a look at:
http://seleniumhq.org/docs/06_test_design_considerations.html#page-object-design-pattern
Oh and notice I switched your code to extend SeleniumTestBase (which isn’t deprecated) instead of SeleniumTestCase.