Package abbot.swt.finder.matchers

Examples of abbot.swt.finder.matchers.WidgetTextMatcher


        workbenchShell = aShell;
    }
   
    // helper method
    public void clickButton (Shell aShell, String buttonText) throws MultipleFoundException, NotFoundException {
        Button button = (Button) finder.find (aShell, new WidgetTextMatcher (buttonText, Button.class, true));
        ButtonTester.getButtonTester().actionClick (button);       
        waitTime (WAIT_STANDARD);
    }
View Full Code Here


        waitTime (WAIT_STANDARD);
    }

    // helper method
    public Shell clickButton (Shell aShell, String buttonText, String newDialogName) throws MultipleFoundException, NotFoundException {
        Button button = (Button) finder.find (aShell, new WidgetTextMatcher (buttonText, Button.class));
        ButtonTester.getButtonTester().actionClick (button)
        waitTime (WAIT_STANDARD);
        return ShellTester.waitVisible (newDialogName);
    }
View Full Code Here

        return ShellTester.waitVisible (newDialogName);
    }

    // helper method
    public void doubleClickItem (Shell aShell, String itemText) throws MultipleFoundException, NotFoundException {
        Item item = (Item) finder.find (aShell, new WidgetTextMatcher (itemText, Item.class, true));
        ItemTester.getItemTester().actionDoubleClick(item);      
        waitTime (WAIT_STANDARD);
    }
View Full Code Here

        waitTime (WAIT_STANDARD);
    }

    // helper method
    public void clickItem (Shell aShell, String itemText) throws MultipleFoundException, NotFoundException {
        Item item = (Item) finder.find (aShell, new WidgetTextMatcher (itemText, Item.class, true));
        ItemTester.getItemTester().actionClick (item, 3, 3);      
        waitTime (WAIT_STANDARD);
    }
View Full Code Here

        waitTime (WAIT_STANDARD);
    }

    // helper method
    public void clickCombo(Shell aShell, String itemText) throws MultipleFoundException, NotFoundException {
        Combo combo = (Combo) finder.find (aShell, new WidgetTextMatcher (itemText, Combo.class, true));
        ComboTester.getComboTester().actionClick (combo);     
        waitTime (WAIT_STANDARD);
    }
View Full Code Here

        waitTime (WAIT_STANDARD);
    }

    // helper method   
    public Shell rightClickItem (Shell aShell, String itemText, String[] menuList, String newDialogName) throws MultipleFoundException, NotFoundException {
        Item item = (Item) finder.find (workbenchShell, new WidgetTextMatcher (itemText, Item.class, true));
        ItemPath anItemPath = new ItemPath (menuList);
        ItemTester.getItemTester().actionClickMenuItem (item, anItemPath);
        waitTime (WAIT_STANDARD);
        return ShellTester.waitVisible (newDialogName);
    }
View Full Code Here

        return ShellTester.waitVisible (newDialogName);
    }

    // helper method   
    public void rightClickItem (Shell aShell, String itemText, String[] menuList) throws MultipleFoundException, NotFoundException {
        Item item = (Item) finder.find (workbenchShell, new WidgetTextMatcher (itemText, Item.class, true));
        ItemPath anItemPath = new ItemPath (menuList);
        ItemTester.getItemTester().actionClickMenuItem (item, anItemPath);
        waitTime (WAIT_STANDARD);
    }
View Full Code Here

        waitTime (WAIT_STANDARD);
    }
   
    // helper method
    public void setTextField (Shell aShell, String oldText, String newText) throws MultipleFoundException, NotFoundException {
        Text text = (Text) finder.find (aShell, new WidgetTextMatcher (oldText, Text.class, true));
        if (oldText.length() > 0)
        {
            TextTester.getTextTester().actionSelect (text, 0, oldText.length());
            TextTester.getTextTester().actionKeyString (newText);
        } else {
View Full Code Here

        // will wait up to 2 minutes for status to change
        boolean statusGood = false;
        int countdown = 180;

        while (statusGood == false && countdown > 0) {
            TreeItem item = (TreeItem) finder.find (aShell, new WidgetTextMatcher (itemText, TreeItem.class));
            if (desiredState.equals (TreeItemTester.getTreeItemTester().getText (item, 1)))
                statusGood = true;
           
            countdown--;
            ShellTester.getShellTester().actionDelay (WAIT_STANDARD);
View Full Code Here

TOP

Related Classes of abbot.swt.finder.matchers.WidgetTextMatcher

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.