Python or Java for selenium

0 votes
Python or Java which one is better for using selenium?

What are the benefits of using either?

Please help.
Jan 9, 2019 in Selenium by Anjali
• 2,950 points
96 views

1 answer to this question.

0 votes

According to me Python is better for using selenium. Here are few reason why I prefer Python for Selenium rather than using Java

  • Python is simpler and more compact compared to Java
  • Java uses traditional braces to start and ends blocks, whilePython uses indentation
  • Java employs static typing, whilePython is dynamically typed
  • Java programs tend to run slower compared toPython programs

Hope this justifies my point for using Python over Java.

answered Jan 9, 2019 by Nabarupa

Related Questions In Selenium

0 votes
2 answers

How to scroll the Page up or down in Selenium WebDriver? (using java)

JavascriptExecutor jsx = (JavascriptExecutor)driver; jsx.executeScript("window.scrollBy(0,555)", ""); or Action classes ...READ MORE

answered Sep 5, 2020 in Selenium by Sri
• 3,010 points
14,186 views
0 votes
1 answer

Upgrading or Updating existing version of Selenium Java Project

I downloaded the java client driver from ...READ MORE

answered Apr 13, 2018 in Selenium by commander
480 views
0 votes
1 answer

XPath for the elements with no ID or Name in Selenium Webdriver

Use like this or similar to this: //div[@id="top-level-menu-item-3"]/div[@class="filter-label"] //div[@id="top-level-menu1"] ...READ MORE

answered Apr 17, 2018 in Selenium by Meci Matt
• 9,460 points
3,276 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,326 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,010 points
5,248 views
0 votes
2 answers

What is the role of TestNG & JUnit frameworks in Selenium?

TestNG and JUnit are test frameworks . it ...READ MORE

answered Sep 4, 2020 in Selenium by Sri
• 3,010 points
986 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
3,129 views
0 votes
1 answer
0 votes
2 answers

Unable to Click on an Element in Selenium (Python) even after finding it.

Here, I give you working script which ...READ MORE

answered Sep 19, 2018 in Selenium by Priyaj
• 58,080 points
17,642 views