Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm wondering what the pros and cons are of using Selenium Webdriver with the python bindings versus Java. So far, it seems like going the java route has much better documentation. Other than that, it seems down to which language you prefer, but perhaps I'm missing something.

Thanks for any input!

share|improve this question

4 Answers

up vote 0 down vote accepted

Generally speaking, the Java selenium web driver is better documented. When I'm searching for help with a particular issue, I'm much more likely to find a Java discussion of my problem than a Python discussion.

Another thing to consider is, what language does the rest of your code base use? If you're running selenium tests against a Java application, then it makes sense to drive your tests with Java.

share|improve this answer
Good point about the language for the rest of the code base! – Leslie Chong Dec 20 '12 at 3:49

You've got it spot on, there are ton load of documents for Java. All the new feature implementations are mostly explained with Java. Even stackoverflow has a pretty strong community for java + selenium.

share|improve this answer

For me it's just a language preference. There are bindings for other languages, but I believe they communicate with Webdriver via some sort of socket interface.

share|improve this answer

It really does not matter. Even the Documentation. Selenium lib is not big at all.

Moreover, if you are good in development, you'll wrap selenium in your own code, and will never use driver.find(By.whatever(description)). Also you'd use some standards and By.whatever will become By.xpath only.

Personally, I prefer python and the reason is that and my other tests for software use other python libs -> this way I can unite my tests.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.