Flutter Engine
XCUIElement(ftr_waitForNonExistence) Category Reference

Instance Methods

(BOOL) - ftr_waitForNonExistenceWithTimeout:
 
(BOOL) - ftr_waitForNonExistenceForDuration:
 

Detailed Description

Definition at line 9 of file TextSemanticsFocusTest.m.

Method Documentation

◆ ftr_waitForNonExistenceForDuration:()

- (BOOL) ftr_waitForNonExistenceForDuration: (NSTimeInterval)  duration

Waits the full duration to ensure something doesn't exist for that duration. Returns NO if at some point the element exists during the duration.

Definition at line 31 of file TextSemanticsFocusTest.m.

References TextSemanticsFocusTest::application.

31  :(NSTimeInterval)duration {
32  return ![self waitForExistenceWithTimeout:duration];
33 }

◆ ftr_waitForNonExistenceWithTimeout:()

- (BOOL) ftr_waitForNonExistenceWithTimeout: (NSTimeInterval)  timeout

Keeps waiting until the element doesn't exist. Returns NO if the timeout is reached before it doesn't exist.

Definition at line 19 of file TextSemanticsFocusTest.m.

19  :(NSTimeInterval)timeout {
20  NSTimeInterval delta = 0.5;
21  while (timeout > 0.0) {
22  if (!self.exists) {
23  return YES;
24  }
25  usleep(delta * 1000000);
26  timeout -= delta;
27  }
28  return NO;
29 }

The documentation for this category was generated from the following file: