Package com.crawljax.oraclecomparator.comparators

Examples of com.crawljax.oraclecomparator.comparators.AttributeComparator


      }
      // create collection comparators
      if (attributes.size() > 0)
        rules.addOracleComparator(new OracleComparator(
                "attribute",
                new AttributeComparator(attributes.toArray(new String[attributes.size()]))));
      if (regexs.size() > 0)
        rules.addOracleComparator(new OracleComparator("regex", new RegexComparator(
                regexs.toArray(new String[regexs.size()]))));
      if (xpaths.size() > 0)
        rules.addOracleComparator(new OracleComparator("xpath",
View Full Code Here


  @Test
  public void testAttributeOracle() {
    String control = "<HTML><A href=\"foo.html\" myattr=\"true\">foo</A><HTML>";
    String test = "<HTML><A href=\"foo.html\" myattr=\"false\">foo</A><HTML>";
    compareTwoDomsWithComparatorEqual(control, test, new AttributeComparator("myattr"));
  }
View Full Code Here

TOP

Related Classes of com.crawljax.oraclecomparator.comparators.AttributeComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.