Tabnine Logo
PageElement.withTimeout
Code IndexAdd Tabnine to your IDE (free)

How to use
withTimeout
method
in
com.atlassian.pageobjects.elements.PageElement

Best Java code snippets using com.atlassian.pageobjects.elements.PageElement.withTimeout (Showing top 20 results out of 315)

origin: com.atlassian.applinks/applinks-pageobjects

/**
 * @return timed condition that returns true if the applinks list is empty (there is no applinks)
 */
@Nonnull
public TimedCondition isEmpty() {
  return applinksTable.withTimeout(TimeoutType.PAGE_LOAD).timed().hasAttribute("data-empty", "empty");
}
origin: com.atlassian.applinks/applinks-pageobjects

/**
 * @return timed condition to wait for the switch back to V2 to be present
 * @see ListApplicationLinkPage#switchToV3Ui()
 */
@Nonnull
public TimedCondition hasSwitchBack() {
  return switchBack.withTimeout(TimeoutType.PAGE_LOAD).timed().isPresent();
}
origin: com.atlassian.applinks/applinks-pageobjects

@Nonnull
public TimedCondition isStatusLoaded() {
  return getStatusContainer()
      .withTimeout(TimeoutType.SLOW_PAGE_LOAD)
      .timed()
      .hasAttribute("data-status-loaded", Boolean.TRUE.toString());
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public AdvancedSearch acknowledge()
{
  acknowledgeButton.withTimeout(TimeoutType.SLOW_PAGE_LOAD).click();
  return pageBinder.bind(AdvancedSearch.class);
}
origin: com.atlassian.jira.plugins/jira-dvcs-connector-pageobjects

/**
 * NOTE: this method only checks whether the sync is in progress, use {@link #isSynchronizationFinished()} for a
 * reliable answer as to whether the synchronization has <i>finished</i>.
 *
 * @return {@code true}, if synchronization is currently in progress.
 */
@Nonnull
public TimedCondition isSyncing() {
  return getSynchronizationIcon().withTimeout(SLOW_PAGE_LOAD).timed().hasClass("running");
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public TimedCondition isAddGlobalPermissionWarningPresent()
{
  return elementFinder.find(By.id("default-groups-warning")).withTimeout(TimeoutType.AJAX_ACTION).timed().isVisible();
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * @since 2.13.0
 */
public TimedCondition isPageVisibleTimed(Content page) {
  final PageElement element = getPageTreeAnchor(page);
  return element.withTimeout(UI_ACTION).timed().isVisible();
}
origin: com.atlassian.applinks/applinks-pageobjects

  private void waitUntilPageIsFullyLoaded() {
    // this button appears very last in the page.
    Poller.waitUntilTrue(notTrustedRadioButton.withTimeout(TimeoutType.PAGE_LOAD).timed().isVisible());
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * @since 2.13.0
 */
public TimedQuery<String> getSelectedPageTitleTimed() {
  return treeContainer.find(By.cssSelector("li a.highlighted"))
      .withTimeout(UI_ACTION)
      .timed()
      .getText();
}
origin: com.atlassian.applinks/applinks-pageobjects

public TrustedApplicationAuthenticationSection setIpPatterns(String ipPatterns) {
  Poller.waitUntilTrue(ipPatternsInput.withTimeout(TimeoutType.PAGE_LOAD).timed().isVisible());
  ipPatternsInput.type(ipPatterns);
  return this;
}
origin: com.atlassian.applinks/applinks-pageobjects

  public BasicAccessAuthenticationSection setUsername(String username) {
    Poller.waitUntilTrue(usernameInput.withTimeout(TimeoutType.PAGE_LOAD).timed().isVisible());
    usernameInput.type(username);

    return this;
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * @since 2.13.0
 */
public TimedQuery<Boolean> isClickableTimed(Content page) {
  return not(getPageTreeLi(page)
      .withTimeout(UI_ACTION)
      .timed()
      .hasClass("unclickable"));
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  private <T extends DashboardEntitiesTab> T gotoTab(PageElement link, Class<T> tab, By tabSelector) {
    if (entitiesPanel.hasAttribute("data-ready-for-interaction", "false"))
      Poller.waitUntil("wait for global entities panel to load", pageElementFinder.find(By.cssSelector(".aui-tabs.global-entities")).withTimeout(TimeoutType.AJAX_ACTION).timed().hasAttribute("data-ready-for-interaction", "true"), is(true));

    link.click();
    final T tabPane = pageBinder.bind(tab);

    assertTrue(tabPane.isVisible());
    Poller.waitUntil("wait for dashboard tab to load", pageElementFinder.find(tabSelector).withTimeout(TimeoutType.AJAX_ACTION).timed().hasClass("content-loaded"), is(true));

    return tabPane;
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

@WaitUntil
private void waitUntilFormIsRendered()
{
  Poller.waitUntilTrue(getLoginButton().withTimeout(TimeoutType.AJAX_ACTION).timed().isPresent());
}
origin: com.atlassian.plugins/atlassian-connect-server-integration-tests-support

@Init
@SuppressWarnings("unused")
public void init() {
  Poller.waitUntilTrue(findLinkElement().withTimeout(TimeoutType.PAGE_LOAD).timed().isVisible());
}
origin: com.atlassian.applinks/applinks-pageobjects

public OauthIncomingAuthenticationWithAutoConfigSection clickUpdate2LOConfig() {
  updateButton.click();
  OauthIncomingAuthenticationWithAutoConfigSection nextPage = pageBinder.bind(OauthIncomingAuthenticationWithAutoConfigSection.class);
  // Clicking the update button will cause the sub-iframe to be redirected first to the remote application, and
  // back to itself. One way to ensure this dance has completed is to wait for the update button to loaded again.
  Poller.waitUntilTrue(updateButton.withTimeout(TimeoutType.PAGE_LOAD).timed().isPresent());
  return nextPage;
}
origin: com.atlassian.jira.plugins/jira-dvcs-connector-pageobjects

public void refresh() {
  controlsButton.click();
  findControlDialog().refresh();
  // wait for popup to show up
  try {
    waitUntilTrue(elementFinder.find(By.id("refreshing-account-dialog")).timed().isVisible());
  } catch (AssertionError e) {
    // ignore, the refresh was probably very quick and the popup has been already closed.
  }
  waitUntilFalse(elementFinder.find(By.id("refreshing-account-dialog")).withTimeout(PAGE_LOAD).timed().isVisible());
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public void submit()
{
  dialogElement.find(By.className("app-role-defaults-dialog-submit-button")).click();
  Poller.waitUntilFalse(dialogElement.withTimeout(TimeoutType.AJAX_ACTION).timed().isPresent());
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

@Override
public TimedCondition isAt()
{
  return Conditions.and(
      searchHeader.timed().isPresent(),
      searchSwitcher.withTimeout(TimeoutType.COMPONENT_LOAD).timed().isPresent(),
      mainContent.timed().isPresent()
  );
}
origin: com.atlassian.jira.plugins/jira-dvcs-connector-pageobjects

public void sync() {
  rootElement.javascript().mouse().mouseover();
  final PageElement syncIcon = getSyncIcon();
  waitUntilTrue(syncIcon.timed().isPresent());
  TimedQuery<Long> lastSync = Queries.forSupplier(timeouts,
      () -> NumberUtils.toLong(syncIcon.getAttribute("data-last-sync")), TimeoutType.SLOW_PAGE_LOAD);
  final long lastSyncBefore = lastSync.now();
  syncIcon.javascript().mouse().click();
  waitUntil(lastSync, greaterThan(lastSyncBefore));
  waitUntilFalse(syncIcon.withTimeout(TimeoutType.SLOW_PAGE_LOAD).timed().hasClass("running"));
}
com.atlassian.pageobjects.elementsPageElementwithTimeout

Popular methods of PageElement

  • timed
  • click
  • getAttribute
  • find
  • getText
  • isPresent
  • javascript
  • type
  • isVisible
  • clear
  • getValue
  • findAll
  • getValue,
  • findAll,
  • isSelected,
  • select,
  • hasAttribute,
  • hasClass,
  • getSize,
  • getTagName,
  • isEnabled

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now