Examples of attr()


Examples of org.jsoup.select.Elements.attr()

        Elements container = html.select("div.form-group");
        assertThat(container, notNullValue());

        Elements formInputElement = container.select("div.col-sm-10 > input");
        assertThat(formInputElement.attr("id"), equalTo("score"));
        assertThat(formInputElement.attr("type"), equalTo("text"));
        assertThat(formInputElement.attr("ng-model"), equalTo("search" + "." + "score"));
    }

    @Test
View Full Code Here

Examples of org.kohsuke.graphviz.Graph.attr()

        if (oper.getMapReduce() != null && oper.getMapReduce().getJobId() != null) {
            jid = oper.getMapReduce().getJobId();
            if (!subgraphs.containsKey(jid)) {
                Graph g = new Graph();
                g.id("cluster_" + jid.replaceAll("-", ""));
                g.attr("bgcolor", BG_CLUSTER);
                Style s = new Style();
                s.attr("rounded");
                s.attr("filled");
                g.style(s);
                subgraphs.put(jid, g);
View Full Code Here

Examples of org.kohsuke.graphviz.Style.attr()

            if (!subgraphs.containsKey(jid)) {
                Graph g = new Graph();
                g.id("cluster_" + jid.replaceAll("-", ""));
                g.attr("bgcolor", BG_CLUSTER);
                Style s = new Style();
                s.attr("rounded");
                s.attr("filled");
                g.style(s);
                subgraphs.put(jid, g);
            }
            subgraphs.get(jid).node(node);
View Full Code Here

Examples of org.nutz.lang.util.Tag.attr()

  @At("/sitemap") //google实际访问的URI是 /sitemap.xml , 不过@At里面的值是绝对不能后缀的,因为它只会去匹配去除后缀的URI
  @Ok("void")
  public void sitemap(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    DBCursor cur = questionColl.find(new BasicDBObject(), new BasicDBObject("updateAt", 1)).sort(new BasicDBObject("createAt", -1));
    Tag urlset = Tag.tag("urlset");
    urlset.attr("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9")
       .attr("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance")
       .attr("xsi:schemaLocation", "http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd");
   
    urlset.add("url").add("loc").setText("http://" + req.getHeader("Host"));
   
View Full Code Here

Examples of org.osm.jsoup.nodes.Element.attr()

    /**
     * 获取视频地址
     */
    Element flashEt = doc.getElementById("video-share-code");
    doc = Jsoup.parse(flashEt.attr("value"));
    String flash = doc.select("embed").attr("src");

    Video video = new Video();
    video.setTitle(title);
    video.setThumbnail(pic);
View Full Code Here

Examples of org.primefaces.util.WidgetBuilder.attr()

        String clientId = clock.getClientId(context);
        String mode = clock.getMode();
        WidgetBuilder wb = getWidgetBuilder(context);

        wb.init("Clock", clock.resolveWidgetVar(), clientId);
        wb.attr("mode", mode)
            .attr("pattern", clock.getPattern(), null)
            .attr("locale", context.getViewRoot().getLocale().toString());
       
        if(mode.equals("server")) {
            wb.attr("value", System.currentTimeMillis());
View Full Code Here

Examples of org.zkoss.test.JQuery.attr()

       
        timeBlocker.waitResponse();
       
        JQuery link = getCell(11, 10).jq$n("real").children().first();
       
        Assert.assertEquals("http://ja.wikipedia.org/wiki", link.attr("href"));
  }
 
  @Test
  public void insert_mail_hyperlink() {
    spreadsheet.focus(11, 10);
View Full Code Here

Examples of org.zkoss.ztl.JQuery.attr()

       
        cell_K_6 = loadCellK6();
        JQuery aTag = cell_K_6.find("a");
       
        if (aTag != null) {
            String href = aTag.attr("href");
            verifyEquals("Unexpected result: " + href, "http://ja.wikipedia.org/wiki", href);
        } else {
            verifyTrue("Cannot get value of specified cell!", false);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.