Selenide
  • 12 Oct 2023
  • 1 Minute to read
  • Dark
    Light

Selenide

  • Dark
    Light

Article Summary

Overview

Selenide streamlines the process of writing UI tests by serving as a wrapper for Selenium WebDriver. It aims to enhance your focus on business logic by taking care of common browser, Ajax, and timeout issues. Notable features include a concise API inspired by jQuery, automatic handling of Ajax and timeouts, seamless browser lifecycle management, and automatic failure screenshots. Selenide also extends Selenium WebDriver with supplementary methods for tasks like radiobutton and selectbox selection, screenshot capture, and browser cache clearance. In essence, Selenide aims to liberate testers from persistent minor hurdles and let them concentrate on business logic.

Prerequisites

  1. Install Java and JDK: Ensure you have the latest version of Java and JDK installed on your system.
  2. Set Up Environment Variables: Configure necessary environment variables.
  3. Install Gradle: Install the latest version of Gradle.

Configuration

  1. Personal Info: In "src/test/java/org/selenide/examples/pcloudy/pcloudyconnection.java", provide your personal details:
    • pCloudy_Username: Your email address.
    • pCloudy_ApiKey: Your API key.

Running the Test

To execute the Selenide test script:

  1. Open the terminal in the project directory.
  2. Run the following command:
./gradlew test --info

The complete sample and documentation are available in the pCloudy GitHub Repository : Github


Was this article helpful?

What's Next