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

net.sf.testium.executor.webdriver.TestiumIeDriver 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.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

public class TestiumIeDriver extends InternetExplorerDriver implements FieldPublisher, TestiumDriver {

	private final WebInterface myInterface;
	
	public TestiumIeDriver( WebInterface anInterface ) {
		super();
		myInterface = anInterface;
	}

	public TestiumIeDriver( WebInterface anInterface, DesiredCapabilities capabilities) {
		super( capabilities );
		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.IE;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy