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

net.sf.testium.executor.webdriver.TestiumUnitDriver Maven / Gradle / Ivy

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

import java.util.List;

import net.sf.testium.configuration.SeleniumConfiguration.BROWSER_TYPE;
import net.sf.testium.selenium.FieldPublisher;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;

public class TestiumUnitDriver extends HtmlUnitDriver implements FieldPublisher, TestiumDriver {

	private final WebInterface myInterface;
	
	public TestiumUnitDriver( WebInterface anInterface ) {
		super();
		myInterface = anInterface;
	}
	
	public void addElement(String varName, WebElement element) {
		myInterface.addElement(varName, element);
	}

	public void addElement(String varName, List elements) {
		myInterface.addElement(varName, elements);
	}

	public WebElement getElement(String varName) {
		return myInterface.getElement(varName);
	}

	public BROWSER_TYPE getType()
	{
		return BROWSER_TYPE.HTMLUNIT;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy