Software Alternatives & Reviews

Mockito VS Selenium

Compare Mockito VS Selenium and see what are their differences

Mockito logo Mockito

Mocking framework for unit tests in Java.

Selenium logo Selenium

Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that.
  • Mockito Landing page
    Landing page //
    2021-10-17
  • Selenium Landing page
    Landing page //
    2023-04-12

Mockito videos

Mockito JUnit Example

More videos:

  • Tutorial - Mockito Tutorial - Mocking With Junit and Maven
  • Review - Mockito Annotations - @Mock, @Runwith, @InjectMocks and @Captor

Selenium videos

Selenium supplements — worth it or waste of time?

More videos:

  • Review - bio true selenium review
  • Review - SELENIUM: Why You Need It and Where To Get It

Category Popularity

0-100% (relative to Mockito and Selenium)
Automated Testing
8 8%
92% 92
Testing
12 12%
88% 88
Browser Testing
5 5%
95% 95
Web Frameworks
100 100%
0% 0

User comments

Share your experience with using Mockito and Selenium. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Mockito and Selenium

Mockito Reviews

We have no reviews of Mockito yet.
Be the first one to post

Selenium Reviews

Best Automation Testing Tools (Free and Paid) | July 2022
Automation testing is the process of testing the software using an automation tool to find the defects. In this process, executing the test scripts and generating the results are performed automatically by automation tools. Some most popular tools to do automation testing are HP QTP/UFT, Selenium WebDriver, etc.,
20 BEST Selenium Alternatives in 2021
Selenium is an open-source automated testing tool. It can perform functional, regression, load testing on web applications across different browsers and platforms. Selenium is one of the finest tools, but it does have some drawbacks.
Source: www.guru99.com
Top 10 Best Selenium Alternatives You Should Try
Selenium is a convenient and portable software testing tool specifically used for testing web applications. It acts as an API (Application Program Interface) for browser automation. Selenium is the widely used free and open-source tool used for automation testing of web applications through various browsers and platforms.
Best Selenium Alternatives (Free and Paid) in 2021
Selenium is one of the automation testing tools which is an open-source tool. Selenium automates web application. Selenium is used for functional and regression testing of web applications. Selenium supports multiple programming and scripting languages like Java, Ruby, Perl, PHP, and Python to code the logic behind the test scripts.
5 Selenium Alternatives to Fill in Your Top Testing Gaps
These Selenium alternatives claim to fill in the gaps that come with using Selenium on its own, whether it is making automated testing more efficient and accessible, or catering to different needs that Selenium does not address. If you are in the market to re-evaluate your test automation framework, here are 5 of the most popular Selenium alternatives on the market.
Source: www.perfecto.io

Social recommendations and mentions

Based on our record, Mockito should be more popular than Selenium. It has been mentiond 14 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Mockito mentions (14)

  • I build CRUDS as an intern. My boss told me my tests were ok, but too slow, so he modified them to run in a specific order to reuse the app context on all tests. Is that a good practice though?
    I would say no. Mocking is generally creating a mock object. Like with Mockito. https://site.mockito.org. Source: 11 months ago
  • Instancio 2.2.0 released
    Could you explain how this relates to Mockito? Could it be used together perhaps for more advanced mocking? Source: over 1 year ago
  • Testing JSch SFTP Code
    You could use mocks, but you'd basically be implementing JSch. I'm not mocking a framework, and recently learned my misgivings have a name: the soviet police station anti-pattern. Source: over 1 year ago
  • Create and use a result captor in Mockito
    In Mockito it exists the possibilty to use ArgumentCaptor to allow developers to verify the arguments used during the call of mocked method, but not the result itself. Indeed, in the current release of Mockito it's not possible to capture it and my solution to do that is to build a ResultCaptor class which implements the Answer interface and generify it for more conveniance. - Source: dev.to / almost 2 years ago
  • Reverse engineering Mockito. Part 1. Single use case
    So I am building my own little project, which you can read about HERE and I have made the decision to use as few libraries as possible. Now that I am doing some testing I need some mock objects, which means I have to try to recreate Mockito. So this series will be me recreating Mockito the best I can. This post will be about creating a simple single use case implementation that gets our annotation working. It... - Source: dev.to / almost 2 years ago
View more

Selenium mentions (8)

  • How to write tests in Django for JavaScript fetch
    You won't be able to test the javascript function itself from within python, but you can exercise the front-end code using something like cypress (https://cypress.io) or the older but still respectable selenium (https://selenium.dev). Source: about 1 year ago
  • Having Issues with selenium
    In addition, .find_element_by_class_name is deprecated since selenium 4.3.0 and the replacement is .find_element(By.CLASS_NAME, "class"). Check selenium's site for more info. Source: about 1 year ago
  • Issues with Selenium 4.8.0
    This is the code again after checking selenium's official site :. Source: about 1 year ago
  • Having Issues with selenium
    I also tried the following code seen on the selenium.dev website. Source: about 1 year ago
  • Document Object Model Specification
    The following functions are defined within the Selenium project, at revision 1721e627e3b5ab90a06e82df1b088a33a8d11c20. - Source: dev.to / almost 2 years ago
View more

What are some alternatives?

When comparing Mockito and Selenium, you can also consider the following products

JUnit - JUnit is a simple framework to write repeatable tests.

Cypress.io - Slow, difficult and unreliable testing for anything that runs in a browser. Install Cypress in seconds and take the pain out of front-end testing.

Cucumber - Cucumber is a BDD tool for specification of application features and user scenarios in plain text.

Katalon - Built on the top of Selenium and Appium, Katalon Studio is a free and powerful automated testing tool for web testing, mobile testing, and API testing.

Robot framework - Robot Framework is a generic test automation framework for acceptance testing and acceptance...

RSpec - RSpec is a testing tool for the Ruby programming language born under the banner of Behavior-Driven Development featuring a rich command line program, textual descriptions of examples, and more.