Package

Source Code of SS_086_3_Test

import org.zkoss.ztl.JQuery;


public class SS_086_3_Test extends SSAbstractTestCase {

    @Override
    protected void executeTest() {
        JQuery cell_K_6 = loadCellK6();
        clickCell(cell_K_6);
        clickCell(cell_K_6);
        click(jq("$insertHyperlinkBtn"));
        waitResponse();
        click(jq("$docBtn"));
        waitResponse();
        click(jq("$refSheet .z-treecell:eq(0)"));
        waitResponse();
        click(jq("$okBtn"));
        waitResponse();
       
        cell_K_6 = loadCellK6();
        JQuery aTag = cell_K_6.find("a");
       
        if (aTag != null) {
            String href = aTag.attr("href");
            if (isIE6() || isIE7()) //IE6 / IE7 add "http://...." in href attr
              verifyTrue("Unexpected result: " + href, href.lastIndexOf("Input!A1") >= 0);
            else
              verifyEquals("Unexpected result: " + href, "Input!A1", href);
        } else {
            verifyTrue("Cannot get value of specified cell!", false);
        }
    }
   
    private JQuery loadCellK6() {
        return getSpecifiedCell(10, 5);
    }

}
TOP

Related Classes of SS_086_3_Test

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.