From 676b8826086aa7ec5cad6922b3c50ca001d91037 Mon Sep 17 00:00:00 2001 From: snewcomer Date: Fri, 20 Apr 2018 13:57:37 -0700 Subject: [PATCH] add doc for new waitFor msg --- API.md | 1 + 1 file changed, 1 insertion(+) diff --git a/API.md b/API.md index 13b005e9f..708582f5b 100644 --- a/API.md +++ b/API.md @@ -294,6 +294,7 @@ interim DOM states (e.g. loading states, pending promises, etc). - `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** the options to be used (optional, default `{}`) - `options.timeout` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** the time to wait (in ms) for a match (optional, default `1000`) - `options.count` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** the number of elements that should match the provided selector (null means one or more) (optional, default `null`) + - `options.timeoutMessage` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** the message to use in the reject on timeout (optional, default `'waitFor timed out'`) Returns **([Element](https://developer.mozilla.org/docs/Web/API/Element) \| [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[Element](https://developer.mozilla.org/docs/Web/API/Element)>)** the element (or array of elements) that were being waited upon