@@ -216,6 +216,105 @@ public static WebDriverWait getWait(Browser browser, int timeout) {
216216 return new WebDriverWait (browser .getWebDriver (), timeout , interval );
217217 }
218218
219+ /**
220+ * Wait until the given {@linkplain PageObject page object} is present in
221+ * the DOM. Uses the configured default timeout.
222+ *
223+ * @param pageObject the page object
224+ * @throws TimeoutException if element never became present
225+ * @since 0.9.6
226+ * @deprecated use
227+ * <code>waitUntil(pageObject, Conditions.is(Conditions.present()));</code>
228+ * instead. Will be removed with 1.1.0!
229+ */
230+ @ Deprecated
231+ public static void waitUntilPresent (PageObject pageObject ) {
232+ waitUntilPresent (pageObject , getWaitTimeout (pageObject ));
233+ }
234+
235+ /**
236+ * Wait until the given {@linkplain PageObject page object} is present in
237+ * the DOM.
238+ *
239+ * @param pageObject the page object
240+ * @param timeout the maximum time to wait in seconds
241+ * @throws TimeoutException if element never became present
242+ * @since 0.9.6
243+ * @deprecated use
244+ * <code>waitSecondsUntil(timeout, pageObject, Conditions.is(Conditions.present()));</code>
245+ * instead. Will be removed with 1.1.0!
246+ */
247+ @ Deprecated
248+ public static void waitUntilPresent (PageObject pageObject , final int timeout ) {
249+ waitSecondsUntil (timeout , pageObject , Conditions .present ());
250+ }
251+
252+ /**
253+ * Wait until the given {@linkplain PageObject page object} is visible on
254+ * the page. Uses the configured default timeout.
255+ *
256+ * @param pageObject the page object
257+ * @throws TimeoutException if element never became visible
258+ * @since 0.9.6
259+ * @deprecated use
260+ * <code>waitUntil(pageObject, Conditions.is(Conditions.visible()));</code>
261+ * instead. Will be removed with 1.1.0!
262+ */
263+ @ Deprecated
264+ public static void waitUntilVisible (PageObject pageObject ) {
265+ waitUntilVisible (pageObject , getWaitTimeout (pageObject ));
266+ }
267+
268+ /**
269+ * Wait until the given {@linkplain PageObject page object} is visible on
270+ * the page.
271+ *
272+ * @param pageObject the page object
273+ * @param timeout the maximum time to wait in seconds
274+ * @throws TimeoutException if element never became visible
275+ * @since 0.9.6
276+ * @deprecated use
277+ * <code>waitSecondsUntil(timeout, pageObject, Conditions.is(Conditions.visible()));</code>
278+ * instead. Will be removed with 1.1.0!
279+ */
280+ @ Deprecated
281+ public static void waitUntilVisible (PageObject pageObject , final int timeout ) {
282+ waitSecondsUntil (timeout , pageObject , Conditions .visible ());
283+ }
284+
285+ /**
286+ * Wait until the given {@linkplain PageObject page object} is not visible
287+ * on the page. Uses the configured default timeout.
288+ *
289+ * @param pageObject the page object
290+ * @throws TimeoutException if element never became invisible
291+ * @since 0.9.6
292+ * @deprecated use
293+ * <code>waitUntil(pageObject, Conditions.is(Conditions.invisible()));</code>
294+ * instead. Will be removed with 1.1.0!
295+ */
296+ @ Deprecated
297+ public static void waitUntilInvisible (PageObject pageObject ) {
298+ waitUntilInvisible (pageObject , getWaitTimeout (pageObject ));
299+ }
300+
301+ /**
302+ * Wait until the given {@linkplain PageObject page object} is not visible
303+ * on the page.
304+ *
305+ * @param pageObject the page object
306+ * @param timeout the maximum time to wait in seconds
307+ * @throws TimeoutException if element never became invisible
308+ * @since 0.9.6
309+ * @deprecated use
310+ * <code>waitSecondsUntil(timeout, pageObject, Conditions.is(Conditions.invisible()));</code>
311+ * instead. Will be removed with 1.1.0!
312+ */
313+ @ Deprecated
314+ public static void waitUntilInvisible (PageObject pageObject , final int timeout ) {
315+ waitSecondsUntil (timeout , pageObject , Conditions .invisible ());
316+ }
317+
219318 /**
220319 * Waits until the given {@link Predicate condition} is met by the provided
221320 * {@link PageObject page object}. The page object's browser's configuration
0 commit comments