Package org.zkoss.test

Examples of org.zkoss.test.JQuery


    click(".zstbtn-sortAndFilter .zstbtn-arrow");
    click(".zsmenuitem-filter");
    Assert.assertTrue(isVisible(".zsdropdown"));
    Assert.assertTrue(jq(".zsdropdown").length() > 0);
   
    JQuery secondSheet = jq(".zssheettab").eq(1);
    click(secondSheet);
    Assert.assertEquals(0, jq(".zsdropdown").length());
    Assert.assertFalse(isVisible(".zsdropdown"));
   
    JQuery firstSheet = jq(".zssheettab").first();
    click(firstSheet);
    Assert.assertTrue(isVisible(".zsdropdown"));
    Assert.assertTrue(jq(".zsdropdown").length() > 0);
   
    //switch back again, shall not have autofilter
View Full Code Here


  @Test
  public void column_font_color() {
    mouseDirector.openColumnContextMenu(5);
   
    click(".zsstylepanel .zstbtn-fontColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFontColor(new Color(color), 5, 5, 20, 5);
  }
View Full Code Here

  @Test
  public void column_fill_color() {
    mouseDirector.openColumnContextMenu(5);
   
    click(".zsstylepanel .zstbtn-fillColor .zstbtn-cave");
    JQuery target = jqFactory.create("'.z-colorpalette-colorbox'").eq(68);
    String color = target.css("background-color");
    click(target);
   
    verifyFillColor(new Color(color), 5, 5, 20, 5);
  }
View Full Code Here

  @Test
  public void column_width() {
    mouseDirector.openColumnContextMenu(5);//column F
   
    click(".z-menupopup:visible .zsmenuitem-columnWidth");
    JQuery $input = jq("$headerSize");
    WebElement input = $input.getWebElement();
    input.clear();
    input.sendKeys("120");
    new JavascriptActions(webDriver)
    .keyDown($input, Keycode.ENTER.intValue())
    .keyUp($input, Keycode.ENTER.intValue())
View Full Code Here

  public void B108() {
   
    int firstSheetWidgetSize = jq(".zswidgetpanel").children().length();
    Assert.assertEquals(9, firstSheetWidgetSize);
   
    JQuery secondSheet = jq(".zssheettab").eq(1);
    mouseDirector.click(secondSheet);
    timeBlocker.waitResponse();
   
    int secondSheetWidgetSize = jq(".zswidgetpanel").children().length();
    Assert.assertEquals(9, secondSheetWidgetSize);
View Full Code Here

  @Test
  public void insert_formula_dialog_search() {
    spreadsheet.focus(0, 10);
   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("bin");
   
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
View Full Code Here

  @Test
  public void compose_formula_dialog_textbox() {
    spreadsheet.focus(0, 10);
   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("sum");
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

  @Test
  public void compose_formula_dialog_arguments() {
    spreadsheet.focus(0, 10);
   
    click(".zsformulabar-insertbtn");
    JQuery $inp = jq("$searchTextbox");
    WebElement inp = $inp.getWebElement();
    inp.sendKeys("sum");
    new JavascriptActions(webDriver)
    .keyDown($inp, Keycode.ENTER.intValue())
    .keyUp($inp, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

   
    click(".zstab-insertPanel");
    click(".zstbtn-hyperlink");
    Assert.assertTrue(isVisible("$_insertHyperlinkDialog"));
   
    JQuery $inp = jq("$addrCombobox input.z-combobox-inp");
        WebElement inp = $inp.getWebElement();
        inp.sendKeys("http://ja.wikipedia.org/wiki");
        inp.sendKeys(Keys.TAB);
        if (browser.isIE6() || browser.isIE7() || browser.isGecko()) {
          timeBlocker.waitUntil(3);
        } else {
          timeBlocker.waitResponse();
        }
        click("$_insertHyperlinkDialog $okBtn");
       
        timeBlocker.waitResponse();
       
        JQuery link = getCell(11, 10).jq$n("real").children().first();
       
        Assert.assertEquals("http://ja.wikipedia.org/wiki", link.attr("href"));
  }
View Full Code Here

        } else {
          timeBlocker.waitResponse();
        }
        click("$_insertHyperlinkDialog $okBtn");
       
        JQuery link = getCell(11, 10).jq$n("real").children().first();
        Assert.assertEquals("mailto:example@potix.com", link.attr("href"));
  }
View Full Code Here

TOP

Related Classes of org.zkoss.test.JQuery

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.