concept selenium in category java

appears as: Selenium
JUnit in Action

This is an excerpt from Manning's book JUnit in Action.

Selenium drives various web browsers programmatically and checks the results from executing JUnit 5 tests. We use Selenium when we require validation of specific browsers and OSs, especially if the application takes advantage of or depends on a browser-specific implementation of JavaScript, DOM, CSS, and so on. Let’s start with HtmlUnit.

Spring Roo in Action

This is an excerpt from Manning's book Spring Roo in Action.

  • Functional tests —Exercise the application using an external testing tool, such as a web browser emulator. Selenium is an open source web testing tool that can be used to test your application’s web frontend.
  • Selenium is widely adopted and there are a number of resources, such as JUnit in Action, Second Edition, that document it in detail. We’ll focus on how to get Selenium up and running against a RESTful controller, and then we’ll look at how to add Junit based Selenium tests for more sophisticated testing scenarios.

    JUnit in Action, Second Edition

    This is an excerpt from Manning's book JUnit in Action, Second Edition.

    Selenium is a more complex offering; it includes a simple IDE and many complementary components. The IDE generates test code but doesn’t maintain it. The strength of the product comes from its architecture, which allows the embeddable Selenium Remote Control server to control different browsers on assorted operating systems. The Selenium API is much simpler and flatter than with HtmlUnit, resulting in more concise test code.

    If at any step Selenium can’t find an object, the framework throws an exception and your test automatically fails. This allows you to focus on the test and let the framework handle failing your test if the page or form is not as expected.