Siriss
Siriss

Reputation: 3767

xcode - Add delay to instruments script

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?

Upvotes: 0

Views: 1059

Answers (2)

Siriss
Siriss

Reputation: 3767

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

UIATarget.localTarget().delay(X);

Having X in seconds.

UsingtheAutomationInstrument

Upvotes: 1

Sugre
Sugre

Reputation: 871

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

Then maybe you can check the visibility of UIAActivityIndicator.

Upvotes: 0

Related Questions