import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
+import org.openqa.selenium.remote.RemoteWebDriver;
import org.springframework.boot.test.context.SpringBootTest;
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
-import org.testcontainers.containers.BrowserWebDriverContainer;
/**
public class DemoControllerIT
{
@Test
- void testSubmit(BrowserWebDriverContainer chrome)
+ void testSubmit(RemoteWebDriver driver)
{
}
import org.junit.jupiter.api.extension.ParameterResolver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
+import org.openqa.selenium.remote.RemoteWebDriver;
import org.testcontainers.containers.BrowserWebDriverContainer;
ParameterContext parameterContext,
ExtensionContext extensionContext)
{
- return parameterContext.getParameter().getType() == BrowserWebDriverContainer.class;
+ return parameterContext.getParameter().getType() == RemoteWebDriver.class;
}
@Override
ParameterContext parameterContext,
ExtensionContext extensionContext)
{
- return chrome;
+ return chrome.getWebDriver();
}
}