+
+
+### Step 5: Create and Configure SmartUI Config
+
+You can now configure your project configurations on using various available options to run your tests with the SmartUI integration. To generate the configuration file, please execute the following command:
+
+```bash
+npx smartui config:create smartui-web.json
+```
+
+Once, the configuration file will be created, you will be seeing the default configuration pre-filled in the configuration file:
+
+```json title="/smartui-sdk-project/.smartui.json"
+{
+ "web": {
+ "browsers": [
+ "chrome",
+ "firefox",
+ "safari",
+ "edge"
+ ],
+ "viewports": [
+ [
+ 1920
+ ],
+ [
+ 1366
+ ],
+ [
+ 1028
+ ]
+ ] // Full Page screenshots are captured by default for web viewports
+ },
+ "mobile": {
+ "devices": [
+ "iPhone 14", //iPhone 14 viewport
+ "Galaxy S24" //Galaxy S24 viewport
+ ],
+ "fullPage": true, //Full Page is true by default for mobile viewports
+ "orientation": "portrait" //Change to "landscape" for landscape snapshot
+ },
+ "waitForTimeout": 1000, //Optional (Should only be used in case lazy-loading/async components are present)
+ "waitForPageRender": 50000, //Optional (Should only be used in case of websites which take more than 30s to load)
+ "enableJavaScript": false, //Enable javascript for all the screenshots of the project
+ "allowedHostnames": [] //Additional hostnames to capture assets from
+}
+```
+:::info Advanced options in SmartUI configuration
+- For capturing fullpage or viewport screenshots, please refer to this [documentation](/docs/smartui-sdk-config-options/#12-viewports)
+- For the list of available mobile viewports, please refer to this [documentation](/docs/smartui-sdk-config-options/#list-of-supported-device-viewports)
+- For more information about SmartUI config global options, please refer to this [documentation](/docs/smartui-sdk-config-options/#3-global-options-optional).
+:::
+
+### Step 6: Adding SmartUI function to take screenshot
+You can incorporate SmartUI into your custom `Playwright` automation test (any platform) script by adding the `smartuiSnapshot` function in the required segment of Playwright script of which we would like to take the screenshot, as shown below:
+
+```java reference
+https://github.com/LambdaTest/smartui-java-playwright-sample/blob/main/src/test/java/com/lambdatest/SmartUISDKPlaywrightCloud.java
+```
+
+### Step 6: Execute the Tests on SmartUI Cloud
+
+Execute visual regression tests on SmartUI using the following commands
+
+```bash
+npx smartui exec -- mvn test -D suite=sdk-playwright-local-java.xml
+```
+
+:::note
+You may use the `npx smartui --help` command in case you are facing issues during the execution of SmartUI commands in the CLI.
+:::
+
+## View SmartUI Results
+
+You have successfully integrated SmartUI SDK with your Playwright tests. Visit your SmartUI project to view builds and compare snapshots between different test runs.
+
+You can see the Smart UI dashboard to view the results. This will help you identify the Mismatches from the existing `Baseline` build and do the required visual testing.
+
+
+
+
+## Arguments supported in the `smartUISnapshot` function
+
+The following are the different options which are currently supported:
+
+| Key | Description |
+| ------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
+| `page` (instance) | The instance of page used in your tests. |
+| `"Screenshot Name"` (string) | Specify a name for the screenshot in your tests to match the same screenshot with the name from your baseline. |
+| `options` (object) | Specify one or a combination of selectors in the `ignoreDOM` or `selectDOM` objects. These selectors can be based on `HTML DOM IDs, CSS classes, CSS selectors, or XPaths` used by your webpage. They define elements that should be excluded from or included in the visual comparison.|
+
+
+## Handling Dynamic Data in SmartUI SDK **
-
-
## Arguments supported in the `smartUISnapshot` function
The following are the different options which are currently supported:
@@ -432,23 +427,3 @@ smartui_snapshot(page,"Ensure your web-apps work seamlessly on every desktop and mobile browsers
+Your Ultimate Resource for Seamless Cross-Browser Testing Across Desktop and Mobile Platforms
diff --git a/sidebars.js b/sidebars.js
index c12d8c5ee..0073ee94b 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -2764,6 +2764,11 @@ module.exports = {
collapsed: true,
// id: "smart-visual-regression-testing",
items: [
+ {
+ type: "doc",
+ label: "Java",
+ id: "smartui-playwright-java-sdk",
+ },
{
type: "doc",
label: "Javascript",