Package com.canoo.webtest.steps

Examples of com.canoo.webtest.steps.HtmlParserMessage


     * @param htmlParser the parent node
     * @param messages   the list of {@link HtmlParserMessage}
     */
    private static void addParserMessages(final Element htmlParser, final List messages) {
        for (Iterator iter = messages.iterator(); iter.hasNext();) {
            final HtmlParserMessage msg = (HtmlParserMessage) iter.next();
            final Element elt = addNewElement(htmlParser,
                msg.getType().toString());
            elt.setAttribute("url", msg.getURL().toString());
            elt.setAttribute("line", String.valueOf(msg.getLine()));
            elt.setAttribute("col", String.valueOf(msg.getColumn()));
            elt.appendChild(htmlParser.getOwnerDocument().createTextNode(msg.getMessage()));
        }
    }
View Full Code Here

TOP

Related Classes of com.canoo.webtest.steps.HtmlParserMessage

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.