# tmuxtest.WaitForText

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/tmuxtest/screen.go#L45
- **Page:** https://libtmux.org/reference/go/tmuxtest-waitfortext/

```
tmuxtest.WaitForText(ctx: context.Context, t: testing.TB, pane: tmux.Pane, text: string)
```

WaitForText blocks until some line of the pane's screen contains text.

A pane that never shows text fails the test with the screen it last read.
