test

package
v0.0.0-...-cb3ddd5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: LGPL-2.1 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeInFrameAt

func BeInFrameAt(x, y int) gomegaTypes.GomegaMatcher

BeInFrameAt is a custom matcher that looks for the expected text at the given coordinates.

func GetBgColour

func GetBgColour(x, y int) [3]int32

GetBgColour returns the background colour of a single cell

func GetFgColour

func GetFgColour(x, y int) [3]int32

GetFgColour returns the foreground colour of a single cell

func GetFrame

func GetFrame() string

GetFrame returns the current Browsh frame's text

func GetText

func GetText(x, y, length int) string

GetText retruns an individual piece of a frame

func GotoURL

func GotoURL(url string)

GotoURL sends the browsh browser to the specified URL

func Keyboard

func Keyboard(keys string)

Keyboard types a string of keys into the TTY, as if a user would

func SpecialKey

func SpecialKey(key tcell.Key)

SpecialKey injects a special key into the TTY. See Tcell's `keys.go` file for all the available special keys.

func SpecialMouse

func SpecialMouse(mouse tcell.ButtonMask)

SpecialMouse injects a special mouse event into the TTY. See Tcell's `mouse.go` file for all the available special mouse values.

func WaitForPageLoad

func WaitForPageLoad()

WaitForPageLoad waits for the page to load

func WaitForText

func WaitForText(text string, x, y int)

WaitForText waits for a particular string at particular position in the frame

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL