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

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

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

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;

public class Negate implements ExpectedCondition

{
	private ExpectedCondition condition;

	public Negate(ExpectedCondition condition)
	{
		this.condition = condition;
	}

	public Boolean apply(WebDriver webDriver)
	{
		return !condition.apply(webDriver);
	}

	public String toString()
	{
		return "check that " + condition.toString() + " is not true";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy