
com.technophobia.webdriver.substeps.impl.StartupWebDriverSubStepImplementations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webdriver-substeps Show documentation
Show all versions of webdriver-substeps Show documentation
Webdriver specific implementations of SubSteps
The newest version!
/*
* Copyright Technophobia Ltd 2012
*
* This file is part of Substeps.
*
* Substeps is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Substeps is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Substeps. If not, see .
*/
package com.technophobia.webdriver.substeps.impl;
import com.google.common.base.Supplier;
import com.technophobia.substeps.model.SubSteps.Step;
import com.technophobia.substeps.model.SubSteps.StepImplementations;
import com.technophobia.webdriver.substeps.runner.DefaultExecutionSetupTearDown;
import com.technophobia.webdriver.util.WebDriverContext;
@StepImplementations(requiredInitialisationClasses = DefaultExecutionSetupTearDown.class)
public class StartupWebDriverSubStepImplementations extends
AbstractWebDriverSubStepImplementations {
public StartupWebDriverSubStepImplementations() {
super();
}
public StartupWebDriverSubStepImplementations(
final Supplier webDriverContextSupplier) {
super(webDriverContextSupplier);
}
/**
* Starts a new web driver session
*
* @example Startup
* @section Startup / Shutodwn
*/
@Step("Startup")
public void startup() {
// WebDriverContext.initialise(Configuration.driverType());
}
/**
* Shuts down the current web driver session
*
* @example Shutdown
* @section Startup / Shutodwn
*/
@Step("Shutdown")
public void shutdown() {
webDriverContext().shutdownWebDriver();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy