2

This question might sound repeated. I have searched Stack exchange and found many questions by users who ask mainly on which language they should choose for Selenium WD: Java or Python?

But their question mainly relates to ease of use for the end user: as in which language is easier to learn.

My question is on capabilities: Which language has greater capability / more functionality for use with Selenium WebDriver? Java or Python? Are they equal?

I know of some awesome frameworks which use Selenium Bindings with Java such as Serenity BDD which has awesome reporting capabilities.

Which language is better suited for Selenium WebDriver in terms of capabilities and functionality?

2
  • I marked this question as "Too Broad" because there is no such things as "the best" per se, but only inside a given context. If you explain more your problems and context, the contributors could give their opinions on the different tools. Aug 2 '19 at 8:25
  • 1
    This isn't a "too broad" because it's asking which language has more tooling - which can be answered by a combination of how many Selenium features are not supported by Python vs Java, and how many extensions (and what they do) are available in Python vs Java.
    – Kate Paulk
    Aug 2 '19 at 11:44
0

From the official page of Selenium:

  • The core language-specific client drivers are:
    • Ruby
    • JavaScript
    • Java
    • Python
    • C#

However as per Selenium Official Home Page language bindings for other languages does exist but those projects are not supported, maintained, hosted, or endorsed by the Selenium project, which are as follows:

Now the specific libraries can be installed through the following approaches:

  • Java: Installation of Selenium libraries for Java can be done using Maven. Add the selenium-java dependency in your project pom.xml:

    <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>selenium-java</artifactId>
      <version>3.141.59</version>
    </dependency>
    
  • Python: Installation of Selenium libraries for Python can be done using pip:

    pip install selenium
    

Finally, Selenium is not just one tool or API but it composes many tools and all the functionalities are implemented through both the and clients and are updated kept updated in sync with the WebDriver W3C Specification. You can find the complete details in:


Conclusion

Selenium isn't about the volume of libraries but about how the different clients implements the features optimally as per the WebDriver W3C Specifications. Selenium isn't about more libraries but about the Test Architecture that best fits into your organizational requirements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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