0

How do you add a delay in an Xcode Instruments UI script? I have a view that can take a second to load. I have tried these waitForValid suggestions found here but I can't get it to work because I don't really have an object to check. Can I wait for a storyboard ID to show up?

Community
  • 1
  • 1
Siriss
  • 3,737
  • 4
  • 32
  • 65

2 Answers2

1

The answer can be found within Apple documentation. I somehow missed it, and feel sheepish.

UIATarget.localTarget().delay(X);

Having X in seconds.

UsingtheAutomationInstrument

Baris Demiray
  • 1,539
  • 24
  • 35
Siriss
  • 3,737
  • 4
  • 32
  • 65
0

Or,do you use an activity indicator to show the loading progress?

Then maybe you can check the visibility of UIAActivityIndicator.

Sugre
  • 851
  • 2
  • 9
  • 19