Allow configuring WebDriver with TestNG
See gh-27947
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user