Examples of click()


Examples of abbot.tester.JComponentTester.click()

    // Check current step is image
    assertStepShowing(panel, true, false, false);   
   
    // 3. Choose tested image
    String imageChoiceOrChangeButtonText = imageChoiceOrChangeButton.getText();
    tester.click(imageChoiceOrChangeButton);
    // Wait 100 ms to let time to Java to load the image
    Thread.sleep(100);
    // Check choice button text changed
    assertFalse("Choice button text didn't change",
        imageChoiceOrChangeButtonText.equals(imageChoiceOrChangeButton.getText()));
View Full Code Here

Examples of abbot.tester.Robot.click()

                        }
                    }
                };
                window.addMouseListener(ma);
                Robot robot = new Robot();
                robot.click(window, x, y, mask);
                robot.waitForIdle();
                window.toFront();
                // Bogus acceleration may mean the event goes entirely
                // elsewhere
                if (!gotBug1Event) {
View Full Code Here

Examples of com.atlassian.pageobjects.elements.PageElement.click()

    PageElement achievement = getAchievementElement(achievementId);

    if (achievement.find(By.className("active")) != null)
    {
      // Achievement is enable, else do nothing
      achievement.click();
    }

    return this;
  }
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlRules.CrawlRulesBuilder.click()

                    onInvariantsPagePreCondition));
  }

  private static void addCrawlElements(CrawljaxConfigurationBuilder builder) {
    CrawlRulesBuilder rules = builder.crawlRules();
    rules.click("a");
    rules.click("div").withText(CLICK_TEXT);
    rules.click("div").underXPath("//SPAN[@id='" + CLICK_UNDER_XPATH_ID + "']");
    rules.click("button").when(new NotRegexCondition("DONT_CLICK_BUTTONS_ON_THIS_PAGE"));
    rules.click("div").withAttribute(ATTRIBUTE, "condition")
            .when(new RegexCondition("REGEX_CONDITION_TRUE"));
View Full Code Here

Examples of com.crawljax.core.configuration.CrawlSpecification.click()

    CrawlSpecification crawler = new CrawlSpecification("http://www.google.com");
    crawler.setWaitTimeAfterEvent(500);
    crawler.setWaitTimeAfterReloadUrl(500);

    // click on all anchor tags
    crawler.click("a");
    // and all input tags with "submit"
    crawler.click("input").withAttribute("type", "submit");

    // exclude these
    crawler.dontClick("a").underXPath("//DIV[@id='guser']");
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.ClickableElement.click()

      {
         throw new IllegalStateException("Component with name=" + this.submitComponent + " is not a ClickableElement.");
      }
     
      ClickableElement clickable = (ClickableElement)htmlElement;
      return clickable.click();
   }
  
   /**
    * Find an element by its name attribute and set its value.
    *
 
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlAnchor.click()

  
   @Test(dependsOnMethods={"homePageLoadTest"})
   public void fileUploadTest() throws IOException {
      final HtmlAnchor linkEl = (HtmlAnchor) page.getFirstByXPath(FILE_UPLOAD_LINK);
     
      final HtmlPage uploadPage = (HtmlPage) linkEl.click();
      if (uploadPage == null){
         fail("Could not read page");
      }
           
      final HtmlInput el1 = (HtmlInput) uploadPage.getFirstByXPath(FILE_UPLOAD_FILE);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlButton.click()

            webClient.getOptions().setRedirectEnabled(false);

            // validate CSRF and get authorization code
            String redirectQuery;
            try {
                final Page redirectPage = consentAccept.click();
                redirectQuery = redirectPage.getUrl().getQuery();
            } catch (FailingHttpStatusCodeException e) {
                // escalate non redirect errors
                if (e.getStatusCode() != HttpStatus.SC_MOVED_TEMPORARILY) {
                    throw e;
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlButtonInput.click()

    assertFalse("Date is not being updated in the PollBean",startDate.equals(endDate));
   
    // Get control button and disable polling
    HtmlButtonInput button = (HtmlButtonInput)client.getElement(_BUTTON_ID);
    assertNotNull("Can't find polling control button ["+_BUTTON_ID+"]",button);
    button.click();

    // Wait for polling state to change
    Thread.sleep(interval*2);   
   
    // Make sure we're no longer polling
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput.click()

      throw new StepFailedException("Found " + field.getTagName() + " when looking for checkbox", this);
    }
    final boolean checked = isChecked();
    final HtmlCheckBoxInput checkBox = (HtmlCheckBoxInput) field;
    if (checkBox.isChecked() != checked) {
      checkBox.click();
      LOG.debug((checked ? "" : "un") + "checked checkbox " + checkBox);
    }
  }

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