Package com.thoughtworks.selenium

Examples of com.thoughtworks.selenium.Wait$WaitTimedOutException


     * Wait for a WYSIWYG dialog to close. The test checks for a {@code div} element with {@code xDialogBox} value of
     * {@code class} to not be present.
     */
    public void waitForDialogToClose()
    {
        new Wait()
        {
            public boolean until()
            {
                return !getSelenium().isElementPresent("//div[contains(@class, 'xDialogBox')]");
            }
View Full Code Here


     * Waits until a WYSIWYG modal dialog is fully loaded. While loading, the body of the dialog has the {@code loading}
     * CSS class besides the {@code xDialogBody} one.
     */
    public void waitForDialogToLoad()
    {
        new Wait()
        {
            public boolean until()
            {
                return getSelenium().isElementPresent(
                    "//div[contains(@class, 'xDialogBody') and not(contains(@class, 'loading'))]");
View Full Code Here

    protected void waitForEditorToLoad()
    {
        final String sourceTabSelected = "//div[@class = 'gwt-TabBarItem gwt-TabBarItem-selected']/div[. = 'Source']";
        final String richTextArea = "//div[@class = 'xRichTextEditor']";
        final String richTextAreaLoader = richTextArea + "//div[@class = 'loading']";
        new Wait()
        {
            public boolean until()
            {
                // Either the source tab is present and selected and the plain text area can be edited or the rich text
                // area is not loading (with or without tabs).
View Full Code Here

     *
     * @param locator specifies the element to wait for
     */
    protected void waitForElementNotPresent(final String locator)
    {
        new Wait()
        {
            public boolean until()
            {
                return !isElementPresent(locator);
            }
View Full Code Here

     *
     * @param hint the tool tip of the node to wait for
     */
    private void waitForNodeWithHint(final String hint)
    {
        new Wait()
        {
            public boolean until()
            {
                return test.isElementPresent(SELECTED_NODE_LOCATOR + "//span[@title = '" + hint + "']");
            }
View Full Code Here

     * @param hint the tool tip of the node to wait for
     * @param label the label of the node to wait for
     */
    private void waitForNodeWithHintAndLabel(final String hint, final String label)
    {
        new Wait()
        {
            public boolean until()
            {
                return test.isElementPresent(String.format("%s//span[@title = '%s' and . = '%s']",
                    SELECTED_NODE_LOCATOR, hint, label));
View Full Code Here

    private void stopSeleniumClient() {
        selenium.stop();
    }

    private void waitForStatus() throws InterruptedException {
        new Wait() {
            public boolean until() {
                String statusContent = selenium.getEval("window.mainFrame.mainStatus.document.getElementById('content').innerHTML");
                return statusContent.indexOf("Done") != -1;
            }
        }.wait("This didn't quite work");
View Full Code Here

   * @see #waitOnUrlChange(WebDriver,WebElement)
   */
  public static void waitOnUrlChange(final WebDriver webDriver, final String fromUrl) {
    Assert.notNull(webDriver, "WebDriver must not be null");
    Assert.notNull(fromUrl, "FromUrl must not be null");
    new Wait("Expected change of URL from " + fromUrl) {
      @Override
      public boolean until() {
        return !webDriver.getCurrentUrl().equals(fromUrl);
      }
    };
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.