Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click()


                {
                    return "Button " + buttonTitle + " is not enabled!";
                }
            } );
        }
        button.click();
    }

}
View Full Code Here


        SWTBotPreferences.TYPE_INTERVAL = 1000;
    }

    @Test public void testPrompt() throws Exception {
        SWTBotButton button = bot.button("BuTToN");
        button.click();

        SWTBotLabel label = bot.label("Enter a test prompt answer:");
        assertNotNull(label);

        //Thread.sleep(10000);
View Full Code Here

    @Test public void testSingleDistinguishableFromDouble() throws Exception {
        SingleAndDblClickListener.dblClickWaitTime = 1000; // Screen shots take time

        SWTBotButton button = bot.button();
        button.click();
        assertEquals(1, preClicksHandled);

        Thread.sleep(SingleAndDblClickListener.dblClickWaitTime + 1);
        assertEquals(ACTION.SINGLE_CLICK_ACTION, actionPerformed);
        assertEquals(1, clicks);
View Full Code Here

        Thread.sleep(SingleAndDblClickListener.dblClickWaitTime + 1);
        assertEquals(ACTION.SINGLE_CLICK_ACTION, actionPerformed);
        assertEquals(1, clicks);
        assertEquals(1, clicksHandled);

        button.click();
        button.click();
        assertEquals(2, preClicksHandled);
        assertEquals(ACTION.DOUBLE_CLICK_ACTION, actionPerformed);
        assertEquals(3, clicks);
        assertEquals(2, clicksHandled);
View Full Code Here

        assertEquals(ACTION.SINGLE_CLICK_ACTION, actionPerformed);
        assertEquals(1, clicks);
        assertEquals(1, clicksHandled);

        button.click();
        button.click();
        assertEquals(2, preClicksHandled);
        assertEquals(ACTION.DOUBLE_CLICK_ACTION, actionPerformed);
        assertEquals(3, clicks);
        assertEquals(2, clicksHandled);
View Full Code Here

        assertEquals(2, preClicksHandled);
        assertEquals(ACTION.DOUBLE_CLICK_ACTION, actionPerformed);
        assertEquals(3, clicks);
        assertEquals(2, clicksHandled);

        button.click();
        assertEquals(3, preClicksHandled);
        Thread.sleep(SingleAndDblClickListener.dblClickWaitTime + 1);
        assertEquals(ACTION.SINGLE_CLICK_ACTION, actionPerformed);
        assertEquals(4, clicks);
        assertEquals(3, clicksHandled);
View Full Code Here

        Thread.sleep(SingleAndDblClickListener.dblClickWaitTime + 1);
        assertEquals(ACTION.SINGLE_CLICK_ACTION, actionPerformed);
        assertEquals(4, clicks);
        assertEquals(3, clicksHandled);

        button.click();
        assertEquals(4, preClicksHandled);
        Thread.sleep(SingleAndDblClickListener.dblClickWaitTime + 1);
        assertEquals(ACTION.SINGLE_CLICK_ACTION, actionPerformed);
        assertEquals(5, clicks);
        assertEquals(4, clicksHandled);
View Full Code Here

    }

    @Test public void testDoubleClick() {
        SingleAndDblClickListener.dblClickWaitTime = 1000; // Screen shots take time
        SWTBotButton button = bot.button();
        button.click();
        button.click();
        assertEquals(ACTION.DOUBLE_CLICK_ACTION, actionPerformed);
    }
}
View Full Code Here

    @Test public void testDoubleClick() {
        SingleAndDblClickListener.dblClickWaitTime = 1000; // Screen shots take time
        SWTBotButton button = bot.button();
        button.click();
        button.click();
        assertEquals(ACTION.DOUBLE_CLICK_ACTION, actionPerformed);
    }
}
View Full Code Here

    // Set focus on the next button. If this is not done, Wizard Framework restores
    // the focus to the "Import as &General Project" radio button. Setting the focus on
    // the radio button selects the button and causes the test to fail.
    // See also SWTBot Bug 337465
    button.setFocus();
    button.click();
    shell.bot().text(UIText.WizardProjectsImportPage_ImportProjectsDescription);
    shell.bot().tree().getAllItems()[0].check();
    // add to working set
    shell.bot().checkBox("Add project to working sets").select();
    // create new working set
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.