@@ -236,44 +236,6 @@ public boolean until() {
236
236
}
237
237
return NextStepDecorator .IDENTITY ;
238
238
});
239
-
240
-
241
- // factories.put(
242
- // "waitFor" + shortName,
243
- // (loc, val) -> (selenium, state) -> {
244
- // String locator = state.expand(loc);
245
- // String value = state.expand(val);
246
- //
247
- // String[] args = buildArgs(method, locator, value);
248
- //
249
- // new Wait() {
250
- // @Override
251
- // public boolean until() {
252
- // invokeMethod(method, selenium, buildArgs(method, state.expand(loc), state.expand(val)));
253
- // return true;
254
- // }
255
- // }.wait("Can't wait for " + shortName);
256
- // return NextStepDecorator.IDENTITY;
257
- // });
258
- //
259
- // factories.put(
260
- // "waitFor" + negateName(shortName),
261
- // (loc, val) -> (selenium, state) -> {
262
- // String locator = state.expand(loc);
263
- // String value = state.expand(val);
264
- // try {
265
- // new Wait() {
266
- // @Override
267
- // public boolean until() {
268
- // invokeMethod(method, selenium, buildArgs(method, locator, value));
269
- // return true;
270
- // }
271
- // }.wait("Can't wait for " + shortName);
272
- // return NextStepDecorator.ASSERTION_FAILED("Wait succeeded but should have failed");
273
- // } catch (Wait.WaitTimedOutException e) {
274
- // return NextStepDecorator.IDENTITY;
275
- // }
276
- // });
277
239
}
278
240
279
241
factories .put (
0 commit comments