Package com.crawljax.oraclecomparator.comparators

Examples of com.crawljax.oraclecomparator.comparators.StyleComparator


    rules.dontClick("a").underXPath("//DIV[@id='" + DONT_CLICK_UNDER_XPATH_ID + "']");
  }

  private static void addOracleComparators(CrawljaxConfigurationBuilder builder) {
    builder.crawlRules().addOracleComparator(
            new OracleComparator("style", new StyleComparator()));

    builder.crawlRules().addOracleComparator(
            new OracleComparator("date", new DateComparator()));
  }
View Full Code Here


            rules.addOracleComparator(new OracleComparator(c.getType().toString()
                    + c.getExpression(), new PlainStructureComparator()));
            break;
          case style:
            rules.addOracleComparator(new OracleComparator(c.getType().toString()
                    + c.getExpression(), new StyleComparator()));
            break;
          case xpath:
            xpaths.add(c.getExpression());
            break;
        }
View Full Code Here

    rules.dontClick("a").underXPath("//DIV[@id='" + DONT_CLICK_UNDER_XPATH_ID + "']");
  }

  private static void addOracleComparators(CrawljaxConfigurationBuilder builder) {
    builder.crawlRules().addOracleComparator(
      new OracleComparator("style", new StyleComparator()));

    builder.crawlRules().addOracleComparator(
      new OracleComparator("date", new DateComparator()));
  }
View Full Code Here

  }

  @Test
  public void testStyleOracle() {

    Comparator oracle = new StyleComparator();
    /* IGNORE_TAGS */
    compareTwoDomsWithComparatorEqual("<HTML><B>foo</B></HTML>", "<HTML>foo</HTML>", oracle);
    compareTwoDomsWithComparatorEqual("<HTML><PRE>foo</PRE></HTML>",
            "<HTML><STRONG>foo</STRONG></HTML>", oracle);
    compareTwoDomsWithComparatorEqual("<HTML><FONT color=\"red\">foo</FONT> bar</HTML>",
View Full Code Here

    rules.dontClick("a").underXPath("//DIV[@id='" + DONT_CLICK_UNDER_XPATH_ID + "']");
  }

  private static void addOracleComparators(CrawljaxConfigurationBuilder builder) {
    builder.crawlRules().addOracleComparator(
            new OracleComparator("style", new StyleComparator()));

    builder.crawlRules().addOracleComparator(
            new OracleComparator("date", new DateComparator()));
  }
View Full Code Here

TOP

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

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.