All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.testium.executor.webdriver.commands.Forward Maven / Gradle / Ivy

The newest version!
/**
 * 
 */
package net.sf.testium.executor.webdriver.commands;

import java.util.ArrayList;

import net.sf.testium.executor.general.SpecifiedParameter;
import net.sf.testium.executor.webdriver.WebInterface;

import org.openqa.selenium.WebDriver;
import org.testtoolinterfaces.testresult.TestStepCommandResult;
import org.testtoolinterfaces.testsuite.ParameterArrayList;
import org.testtoolinterfaces.utils.RunTimeData;

/**
 * Executes the Selenium 2.0 forward command
 * 
 * @author Arjan Kranenburg
 *
 */
public class Forward extends GenericSeleniumCommandExecutor
{
	private static final String COMMAND = "forward";

    /**
	 * 
	 */
	public Forward( WebInterface aWebInterface )
	{
		super( COMMAND, aWebInterface, new ArrayList() );
	}

	@Override
	protected void doExecute(RunTimeData aVariables,
			ParameterArrayList parameters, TestStepCommandResult result)
			throws Exception {
		WebDriver webDriver = this.getDriver();

		webDriver.navigate().forward();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy