com.crawljax.condition.NotXPathCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crawljax Show documentation
Show all versions of crawljax Show documentation
Crawling Ajax applications through dynamic analysis and
reconstruction of the UI state changes. Crawljax is based on a
method which dynamically builds a `state-flow graph' modeling
the various navigation paths and states within an Ajax
application.
The newest version!
package com.crawljax.condition;
import net.jcip.annotations.Immutable;
import com.crawljax.browser.EmbeddedBrowser;
/**
* Condition that returns true iff no elements are found with expression.
*
* @author [email protected] (Danny Roest)
* @version $Id$
*/
@Immutable
public class NotXPathCondition extends AbstractCondition {
private final XPathCondition xpathCondition;
/**
* @param expression
* the XPath expression.
*/
public NotXPathCondition(String expression) {
this.xpathCondition = new XPathCondition(expression);
}
@Override
public boolean check(EmbeddedBrowser browser) {
return Logic.not(xpathCondition).check(browser);
}
}