Package com.thoughtworks.selenium

Examples of com.thoughtworks.selenium.Wait$WaitTimedOutException


     *
     * @param count the expected number of macros currently displayed on the "Select Macro" dialog
     */
    public void waitForMacroListItemCount(final int count)
    {
        new Wait()
        {
            public boolean until()
            {
                return count == getMacroListItemCount();
            }
View Full Code Here


        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

            : "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

                + "]");
    }

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

        }.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

     * Waits until an alert message appears or the timeout expires. You can use {@link Selenium#getAlert()} to assert
     * the alert message afterwards.
     */
    public void waitForAlert()
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().isAlertPresent();
            }
View Full Code Here

     * Waits until a confirmation message appears or the timeout expires. You can use {@link Selenium#getConfirmation()}
     * to assert the confirmation message afterwards.
     */
    public void waitForConfirmation()
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().isConfirmationPresent();
            }
View Full Code Here

     *
     * @param expectedFontSize the expected font size
     */
    protected void waitForDetectedFontSize(final String expectedFontSize)
    {
        new Wait()
        {
            public boolean until()
            {
                return expectedFontSize.equals(getSelenium().getValue(FONT_SIZE_SELECTOR));
            }
View Full Code Here

     * @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

        // 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

TOP

Related Classes of com.thoughtworks.selenium.Wait$WaitTimedOutException

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.