Class QueryUtils

java.lang.Object
org.jvnet.hudson.test.QueryUtils

public final class QueryUtils extends Object
  • Method Details

    • waitUntilStringIsPresent

      public static void waitUntilStringIsPresent(org.htmlunit.html.HtmlPage page, String value)
      Waits until the given string is visible on the page, otherwise throws an exception
      Parameters:
      page - the page
      value - the value to find
      Throws:
      RuntimeException - if string is not present after three seconds
    • waitUntilStringIsNotPresent

      public static void waitUntilStringIsNotPresent(org.htmlunit.html.HtmlPage page, String value)
      Waits until the given string is not visible on the page, otherwise throws an exception
      Parameters:
      page - the page
      value - the value to not find
      Throws:
      RuntimeException - if string is present after three seconds
    • waitUntilElementIsPresent

      public static org.htmlunit.html.HtmlElement waitUntilElementIsPresent(org.htmlunit.html.HtmlPage page, String query)
      Waits until the given query selector is visible on the page, otherwise returns null
      Parameters:
      page - the page
      query - the query selector for the element