Examples of Wait


Examples of com.thoughtworks.selenium.Wait

     * @param expectedFontName the expected font name
     */
    protected void waitForDetectedFontName(final String expectedFontName)
    {
        final String[] detectedFontName = new String[1];
        new Wait()
        {
            public boolean until()
            {
                detectedFontName[0] = getSelenium().getValue(FONT_NAME_SELECTOR);
                return expectedFontName.equals(detectedFontName[0]);
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

        // Switch to source tab but don't wait for the conversion result.
        switchToSource(false);
        // Switch back to WYSIWYG tab.
        switchToWysiwyg();
        // Wait for the conversion result on the WYSIWYG tab.
        new Wait()
        {
            public boolean until()
            {
                return getSourceText().length() > 1;
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

        setSourceText(sourceText);
        // Switch to WYSIWYG tab but don't wait for the rich text area to load.
        switchToWysiwyg(false);
        // Switch back to source tab and wait there for the rich text area to load.
        switchToSource();
        new Wait()
        {
            public boolean until()
            {
                return !isElementPresent("//div[@class = 'xRichTextEditor']//div[@class = 'loading']");
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

        getSelenium().waitForCondition(condition, "" + WAIT_TIME);
    }

    public void waitForTextPresent(final String elementLocator, final String expectedValue)
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().getText(elementLocator).equals(expectedValue);
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

            : "Element [" + elementLocator + "] found but it doesn't have the expected value [" + expectedValue + "]");
    }

    public void waitForTextContains(final String elementLocator, final String containsValue)
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().getText(elementLocator).indexOf(containsValue) > -1;
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

            + "]");
    }

    public void waitForBodyContains(final String containsValue)
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().getBodyText().indexOf(containsValue) > -1;
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

        }.wait("Body text doesn't contain the value [" + containsValue + "]");
    }

    public void waitForElement(final String elementLocator)
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().isElementPresent(elementLocator);
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

    /**
     * Wait for the step selector to load.
     */
    private void waitForStepSelector()
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().isElementPresent(
                    "//table[contains(@class, 'xStepsTabs') and not(contains(@class, 'loading'))]");
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

     *
     * @param count the number of selected macros to wait for
     */
    public void waitForSelectedMacroCount(final int count)
    {
        new Wait()
        {
            public boolean until()
            {
                return count == getSelectedMacroCount();
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

     * @param present {@code true} to wait for the specified macro to be present, {@code false} to wait for it to be
     *            hidden
     */
    public void waitForMacroListItem(final String macroName, final boolean present)
    {
        new Wait()
        {
            public boolean until()
            {
                return present == getSelenium().isElementPresent(getMacroListItemLocator(macroName));
            }
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.