Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

LambdaTest/lambdatest-java-sdk

Open more actions menu

Repository files navigation

LambdaTest Java SDK

Run the following command to install the dependencies of the project mentioned in pom.xml:

mvn clean install

Set the required environment variables:

export PROJECT_TOKEN=<add-your-project-token>
export LT_ACCESS_KEY=<add-your-access-key>
export LT_USERNAME=<add-your-username>

Usage

To Take SmartUI App Snapshot

import io.github.lambdatest.SmartUIAppSnapshot;

1. Create an Object of SmartUIAppSnapshot

        SmartUIAppSnapshot smartUIAppSnapshot = new SmartUIAppSnapshot();
        Map<String, String> screenshotConfig = new HashMap<>();
        screenshotConfig.put("deviceName","Google pixel 9");
        screenshotConfig.put("platform","Android 15");

        smartUIAppSnapshot.start(); 
        smartUIAppSnapshot.smartuiAppSnapshot(driver, "screenshot1", screenshotConfig);
        smartUIAppSnapshot.stop();
    

To Take SmartUI Snapshot

1. Install the smartui-cli Dependencies

npm i @lambdatest/smartui-cli

2. Create and Configure SmartUI Config

npx smartui config:create smartui-web.json
import io.github.lambdatest.SmartUISnapshot;

public class SmartUISDK {

    private RemoteWebDriver driver;

    @Test
    public void basicTest() throws Exception {
        driver.get("https://www.lambdatest.com/support/docs/smartui-selenium-java-sdk");
        SmartUISnapshot.smartuiSnapshot(driver, "visual-regression-testing");
    }

}

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
MIT-LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.