# tmuxtest.WaitForLine

- **Module:** tmuxtest
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/tmuxtest/screen.go#L57
- **Page:** https://libtmux.org/en/go/latest/reference/tmuxtest-waitforline/

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

WaitForLine blocks until some line of the pane's screen is exactly line.

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