Examples of Wait


Examples of com.thoughtworks.selenium.Wait

     * @param enabled {@code true} to wait for the specified button to become enabled, {@code false} to wait for it to
     *            become disabled
     */
    public void waitForPushButton(final String pushButtonTitle, final boolean enabled)
    {
        new Wait()
        {
            public boolean until()
            {
                return enabled == isPushButtonEnabled(pushButtonTitle);
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

     * @param enabled {@code true} to wait for the specified toggle button to become enabled, {@code false} to wait for
     *            it to become disabled
     */
    public void waitForToggleButton(final String toggleButtonTitle, final boolean enabled)
    {
        new Wait()
        {
            public boolean until()
            {
                return enabled == isToggleButtonEnabled(toggleButtonTitle);
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

     * @param toggleButtonTitle the tool tip of a toggle button
     * @param down {@code true} to wait until the specified toggle button is down, {@code false} to wait until it is up
     */
    public void waitForToggleButtonState(final String toggleButtonTitle, final boolean down)
    {
        new Wait()
        {
            public boolean until()
            {
                return down == isToggleButtonDown(toggleButtonTitle);
            }
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

    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

Examples of com.thoughtworks.selenium.Wait

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

Examples of com.thoughtworks.selenium.Wait

     *
     * @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("//td[contains(@class, 'treeCellSelected')]//span[@title = '" + hint
                    + "']");
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

     * @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("//td[contains(@class, 'treeCellSelected')]//span[@title = '" + hint
                    + "' and . = '" + label + "']");
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

      }
      catch (InterruptedException e)
      {
      }
       
      new Wait()
      {
         @Override
         public boolean until()
         {
            return (driver.isElementPresent(SEARCH_RESULT_TABLE) || driver.isElementPresent(NO_HOTELS_FOUND));
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

      result = browser.getAlert();     
      assertTrue("An alert message should show up and should contain message \"" + MESSAGE_WITH + "\"", result.contains(MESSAGE_WITH));      
   }   
  
   public void waitForAlertPresent(Long timeout){
      new Wait()
      {
         @Override
         public boolean until()
         {
            return browser.isAlertPresent();
View Full Code Here

Examples of com.thoughtworks.selenium.Wait

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