# Yahoo! UI Library

### yuitest 2.4.1

Yahoo! UI Library > yuitest > YAHOO.tool.TestCase.Wait

Show Private Show Protected

## Class YAHOO.tool.TestCase.Wait

Represents a stoppage in test execution to wait for an amount of time before continuing.

### Constructor

YAHOO.tool.TestCase.Wait `( segment , delay )`

Parameters:
  `segment <Function>` A function to run when the wait is over.
  `delay <int>` The number of milliseconds to wait before running the code.

### Properties

#### delay `- int`

The delay before running the segment of code.

#### segment `- Function`

The segment of code to run when the wait is over.

Copyright © 2007 Yahoo! Inc. All rights reserved.