- 12 Oct 2023
- 1 Minute to read
- Print
- DarkLight
Selenide
- Updated on 12 Oct 2023
- 1 Minute to read
- Print
- DarkLight
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
- Install Java and JDK: Ensure you have the latest version of Java and JDK installed on your system.
- Set Up Environment Variables: Configure necessary environment variables.
- Install Gradle: Install the latest version of Gradle.
Configuration
- 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:
- Open the terminal in the project directory.
- Run the following command:
./gradlew test --info
The complete sample and documentation are available in the pCloudy GitHub Repository : Github