views:

163

answers:

4

I am planning to learn selenium, what would be the best language to learn along with selenium?

Perl or Ruby or others?

+3  A: 

This question seems a little misguided. You use Selenium to test web applications.

Those web applications may be written in Ruby, Perl, PHP, Python or whatever web framework you want.

You can see the full list of supported languages and associated frameworks here:

http://seleniumhq.org/about/platforms.html#programming-languages

Jamie Wong
Why the downvote?
Jamie Wong
hmm, i didnt downvote it. changed to correct vote
Onnesh
+4  A: 

Java obviously has certain advantages for testing with Selenium - the most obvious is that you can instantiate the remote control server easily in-process and not needing to have two separate apps running. It's also a bit easier to extend Selenium in Java.

Aside from that, though, you can use Selenium easily with any of the supported languages, and if you have to you can write a new driver if you want to use an unsupported language. So the "best" language for you to write Selenium tests in is the language you are most comfortable with.

Personally, I'm using Ruby, but that's because I'm using Selenium from Cucumber and RSpec - both of which are Ruby tools.

Robert Watkins
I'd add that the ruby libraries that do support Selenium are pretty good. Capybara, Webrat etc make it fairly straightforward to add Selenium to your test suit, however these are DSL's so you are not really _learning_ Selenium.
Rodreegez
+1  A: 

If you're asking what language is best for writing Selenium tests, the answer is Java for Selenium 1.0. There are a bunch of corner-case operations that are only implemented in the Java client, even though Selenium is supposedly client-language-neutral. This is a natural outgrowth of the fact that the developers are primarily Java folks.

For Selenium 2.0, Java is still the best answer, because the Java client code is the first written and the standard for correctness. But the .NET (e.g., C#) and Python clients have pretty aggressive support as well. There are other languages, but they're lagging a bit.

Ross Patterson
A: 

hi friend...could you explain .execute selenium rc test suite with ruby through command prompt...i done test case but not test suite......

venkataraman