Tabnine Logo
SelenideElement.waitUntil
Code IndexAdd Tabnine to your IDE (free)

How to use
waitUntil
method
in
com.codeborne.selenide.SelenideElement

Best Java code snippets using com.codeborne.selenide.SelenideElement.waitUntil (Showing top 20 results out of 315)

origin: com.epam.jdi/jdi-uitest-web

public J waitUntil(Condition condition, long timeoutMilliseconds, long pollingIntervalMilliseconds) {
  Selenide.$(getWebElement()).waitUntil(condition, timeoutMilliseconds, pollingIntervalMilliseconds);
  return this;
}
origin: Evolveum/midpoint

public ResourceAccountsTab<T> clickSearchInRepository() {
  $(Schrodinger.byDataId("a", "repositorySearch"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  $(Schrodinger.byDataId("a", "repositorySearch"))
      .waitUntil(Condition.enabled, MidPoint.TIMEOUT_DEFAULT_2_S);
  return this;
}
origin: Evolveum/midpoint

  public EditTaskPage clickResume() {

    $(Schrodinger.byDataResourceKey("a", "pageTaskEdit.button.resume")).waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click();

    return this;
  }
}
origin: Evolveum/midpoint

public ResourceShadowTableCog<ResourceShadowTable<T>> clickCog() {
  $(Schrodinger.byElementAttributeValue("button", "data-toggle", "dropdown"))
      .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  SelenideElement cog = $(Schrodinger.byElementAttributeValue("ul","role","menu"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new ResourceShadowTableCog<>(this, cog);
}
origin: Evolveum/midpoint

public ResourceTaskQuickAccessDropDown<ResourceAccountsTab<T>> importTask() {
  $(Schrodinger.byElementAttributeValue("label", "data-s-id", "label", "Import"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  SelenideElement dropDownElement = $(Schrodinger.byElementAttributeValue("ul", "role", "menu"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new ResourceTaskQuickAccessDropDown<>(this, dropDownElement);
}
origin: Evolveum/midpoint

public ResourceShadowTable<ResourceAccountsTab<T>> table() {
  SelenideElement element = $(By.cssSelector(".box.boxed-table.object-shadow-box"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new ResourceShadowTable<>(this, element);
}
origin: Evolveum/midpoint

public ConfirmationModal<UsersTableDropDown<T>> clickUnlock() {
  $(Schrodinger.byElementValue("a", "data-s-id", "menuItemLink", "\n" +
      "        Unlock")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  SelenideElement actualModal = $(Schrodinger.byElementAttributeValue("div", "aria-labelledby", "Confirm action"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new ConfirmationModal<>(this, actualModal);
}
origin: Evolveum/midpoint

public PrismForm<T> showEmptyAttributes(String containerName) {
  $(Schrodinger.byAncestorPrecedingSiblingDescendantOrSelfElementEnclosedValue("div", "data-s-id", "showEmptyButton", "class", "prism-properties", containerName))
      .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  return this;
}
origin: Evolveum/midpoint

public InputTable<NewTaskPage> basicTable() {
  SelenideElement tableElement = $(Schrodinger.byPrecedingSiblingEnclosedValue("table", "class", "table table-condensed table-striped", "", "", "Basic"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new InputTable<>(this, tableElement);
}
origin: Evolveum/midpoint

public T clickNo() {
  $(Schrodinger.byDataResourceKey("a", "confirmationDialog.no"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  $(Schrodinger.byDataResourceKey("a", "confirmationDialog.yes"))
      .waitUntil(Condition.disappears, MidPoint.TIMEOUT_LONG_1_M);
  return this.getParent();
}
origin: Evolveum/midpoint

public T close() {
  $(By.className("w_close"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  $(Schrodinger.byDataResourceKey("a", "confirmationDialog.yes"))
      .waitUntil(Condition.disappears, MidPoint.TIMEOUT_LONG_1_M);
  return this.getParent();
}
origin: Evolveum/midpoint

public InputTable<T> clickCheckBox(String attributeName){
$(Schrodinger.byAncestorPrecedingSiblingDescendantOrSelfElementEnclosedValue("input","type","checkbox",null,null,attributeName))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  return this;
}
origin: Evolveum/midpoint

  public InputBox<Search<T>> byFullText() {

    SelenideElement linksContainer = getParentElement().$(Schrodinger.byDataId("div", "linksContainer")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
    try {
      linksContainer.$(Schrodinger.byDataId("a", "fullText")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
    } catch (Throwable t) {
      // all is ok, fullText search is already selected option, TODO: Schrodinger should provide easy method to check component existence
    }

    // we assume fulltext is enabled in systemconfig, else error is thrown here:
    SelenideElement fullTextField = getParentElement().$(Schrodinger.byDataId("input", "fullTextField")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
    return new InputBox<> (this, fullTextField);
  }
}
origin: Evolveum/midpoint

public ListTasksPage clickSave() {
  $(Schrodinger.byDataId("saveButton"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  return new ListTasksPage();
}
origin: Evolveum/midpoint

public ConfirmationModal<T> clickDelete() {
  $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.deleteAccount"))
      .waitUntil(Condition.exist, MidPoint.TIMEOUT_DEFAULT_2_S).parent().click();
  SelenideElement modalBox = $(Schrodinger.byElementAttributeValue("div", "aria-labelledby", "Confirm deletion"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new ConfirmationModal<>(this.getParent(), modalBox);
}
origin: Evolveum/midpoint

public ResourceConfigurationTab clickEditResourceConfiguration() {
  $(Schrodinger.byDataResourceKey("a", "pageResource.button.configurationEdit")).waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
 SelenideElement element=  $(By.cssSelector(".tab-pane.active"))
     .waitUntil(Condition.visible, MidPoint.TIMEOUT_DEFAULT_2_S);
  return new ResourceConfigurationTab(new EditResourceConfigurationPage(), element);
}
origin: Evolveum/midpoint

public T clickImport() {
  $(Schrodinger.byDataResourceKey("pageContentAccounts.menu.importAccounts"))
      .parent().waitUntil(Condition.appears, MidPoint.TIMEOUT_DEFAULT_2_S).click();
  return this.getParent();
}
origin: Evolveum/midpoint

public TestConnectionModal<EditResourceConfigurationPage> clickSaveAndTestConnection() {
  $(Schrodinger.byDataId("testConnection")).click();
  SelenideElement testModalBox = $(Schrodinger
      .byElementAttributeValue("div", "aria-labelledby", "Test connection result(s)"))
      .waitUntil(Condition.appears, MidPoint.TIMEOUT_LONG_1_M);
  return new TestConnectionModal<>(this, testModalBox);
}
origin: Evolveum/midpoint

public T updateSearch() {
  getParentElement().$(Schrodinger.byDataId("update")).click();
  getParentElement().$(Schrodinger.byDataId("update")).waitUntil(Condition.disappears, MidPoint.TIMEOUT_DEFAULT_2_S);
  return this.getParent();
}
origin: Evolveum/midpoint

  public ListResourcesPage testConnectionClick(String resourceName){
    table()
        .search()
        .byName()
        .inputValue(resourceName)
        .updateSearch();

    SelenideElement testConnectionIcon = $(Schrodinger
        .byElementAttributeValue("i", "class","fa fa-question fa-fw")).waitUntil(Condition.appear, MidPoint.TIMEOUT_DEFAULT_2_S);
    testConnectionIcon.click();

    return this;

  }
}
com.codeborne.selenideSelenideElementwaitUntil

Javadoc

Wait until given element meets given conditions.

IMPORTANT: in most cases you don't need this method because all should- methods wait too. You need to use #waitUntil or #waitWhile methods only if you need another timeout.

Popular methods of SelenideElement

  • click
    Click the element with a relative offset from the upper left corner of the element
  • shouldBe
  • getText
    Get the visible text of this element, including sub-elements without leading/trailing whitespace. NB
  • is
  • shouldHave
  • attr
    Get the attribute of the element. Synonym for getAttribute(String).
  • exists
    Checks if element exists true on the current page.
  • getValue
    Get the "value" attribute of the element
  • has
  • hover
  • isDisplayed
    Check if this element exists and visible.
  • isEnabled
  • isDisplayed,
  • isEnabled,
  • pressEnter,
  • setValue,
  • should,
  • text,
  • uploadFile,
  • val,
  • waitWhile

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JComboBox (javax.swing)
  • Github Copilot alternatives
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