Uploaded image for project: 'Arquillian Graphene'
  1. Arquillian Graphene
  2. ARQGRA-228

Waiting conditions improvements - string matchers, no-parameter until()

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.Alpha3
    • Component/s: None
    • Labels:
      None

      Description

      Currently, we may write this code:

      waitGui().until(element(autocompleteInput).textEquals("A"));
      

      If we want to add condition for waiting for input's value, we would add valueEquals method:

      waitGui().until(element(autocompleteInput).valueEquals("A"));
      

      But certainly, it would be best to use kind of value retrievers and their matchers with following API:

      waitGui().until().element(autocompleteInput).text().equalTo("A");
      waitGui().until().element(autocompleteInput).value().equalTo("A");
      waitGui().until().element(autocompleteInput).value().contains("A");
      
      waitGui().until().element(autocompleteInput).attribute("color").equalTo("A");
      

      Other problems is negation. Current situation is:

      waitGui().until(element(autocompleteInput).not().isPresent());
      waitGui().until(attribute(autocompleteInput, "color").not().isPresent());
      

      This should be replaced by:

      waitGui().until().element(autocompleteInput).is().not().present();
      waitGui().until().element(autocompleteInput).attribute("color").is().not().present();
      

      And for string matchers:

      waitGui().until().element(autocompleteInput).text().not().equalTo("A");
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jpapouse Jan Papousek
                Reporter:
                lfryc Lukáš Fryč
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: