Allow configuring WebDriver with TestNG

See gh-27947
This commit is contained in:
AlexCD 2021-09-12 19:27:29 +03:00 committed by Stephane Nicoll
parent edba364720
commit 4872523181
2 changed files with 7 additions and 2 deletions

View File

@ -36,11 +36,15 @@ import org.springframework.util.StringUtils;
* {@link WebDriverTestExecutionListener}.
*
* @author Phillip Webb
* @since 2.6.0
* @see WebDriverContextCustomizerFactory
* @see WebDriverTestExecutionListener
*/
class WebDriverScope implements Scope {
public class WebDriverScope implements Scope {
/**
* WebDriver bean scope name.
*/
public static final String NAME = "webDriver";
private static final String WEB_DRIVER_CLASS = "org.openqa.selenium.WebDriver";

View File

@ -26,10 +26,11 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
* {@link TestExecutionListener} to reset the {@link WebDriverScope}.
*
* @author Phillip Webb
* @since 2.6.0
* @see WebDriverContextCustomizerFactory
* @see WebDriverScope
*/
class WebDriverTestExecutionListener extends AbstractTestExecutionListener {
public class WebDriverTestExecutionListener extends AbstractTestExecutionListener {
@Override
public int getOrder() {