package com.blackboard.testing.common;

import com.blackboard.testing.driver.LambdaWebDriverThreadLocalContainer;
import com.blackboard.testing.testcontext.EnvironmentDetector;
import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.WebDriverRunner;
import com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName;
import org.junit.BeforeClass;

public abstract class LambdaBaseTest {

    @BeforeClass
    public static void baseTestBeforeClass() {
        Configuration.browser = BrowserName.CHROME.toString();
        Configuration.reopenBrowserOnFail = false;

        if (EnvironmentDetector.inLambda()) {
            Configuration.reportsFolder = "/tmp/selenidereports";
            WebDriverRunner.webdriverContainer = new LambdaWebDriverThreadLocalContainer();
        }
    }
}

@@ -103,24 +103,80 @@
 lContainer;%0A
+import com.blackboard.testing.lambda.LambdaTestHandler;%0A
 import com.b
@@ -271,16 +271,56 @@
 ration;%0A
+import com.codeborne.selenide.Selenide;%0A
 import c
@@ -369,104 +369,112 @@
 ort 
-com.gargoylesoftware.htmlunit.javascript.configuration.BrowserName;%0Aimport org.junit.BeforeClass
+org.junit.BeforeClass;%0Aimport org.openqa.selenium.OutputType;%0Aimport org.openqa.selenium.TakesScreenshot
 ;%0A%0Ap
@@ -612,37 +612,16 @@
 r = 
-BrowserName.CHROME.toString()
+%22chrome%22
 ;%0A  
@@ -720,74 +720,8 @@
 ) %7B%0A
-            Configuration.reportsFolder = %22/tmp/selenidereports%22;%0A
     
@@ -823,11 +823,391 @@
  %7D%0A    %7D
+%0A%0A    protected void screenshot(String description) %7B%0A        if (EnvironmentDetector.inLambda()) %7B%0A            LambdaTestHandler.addAttachment(description + %22.png%22,%0A                    ((TakesScreenshot) WebDriverRunner.getWebDriver())%0A                            .getScreenshotAs(OutputType.BYTES));%0A        %7D else %7B%0A            Selenide.screenshot(description);%0A        %7D%0A    %7D
 %0A%7D%0A

Add screenshot capability to base test