code: function makeFindQuery(getter) {
    return (container, text, options, waitForElementOptions) =>
      waitForElement(
        () => getter(container, text, options),
        waitForElementOptions,
      )
  }
docs: this accepts a getter query function and returns a function which calls waitForElement and passing a function which invokes the getter.