clipboard

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package clipboard contains functionality shared by tests that exercise Clipboard restrictions of DLP.

Index

Constants

View Source
const (
	CheckWordsMax = 10
	CheckWordsMin = 1
)

Upper and lower bounds of the number of words to check between the pasted and copied strings.

Variables

This section is empty.

Functions

func CheckClipboardBubble

func CheckClipboardBubble(ctx context.Context, ui *uiauto.Context, url string) error

CheckClipboardBubble checks if clipboard restriction bubble exists.

func CheckGreyPasteNode

func CheckGreyPasteNode(ctx context.Context, ui *uiauto.Context) error

CheckGreyPasteNode checks if greyed paste node exists.

func CheckPastedContent

func CheckPastedContent(ctx context.Context, ui *uiauto.Context, content string) error

CheckPastedContent checks if a certain string appears in the search box.

func GetClipboardContent

func GetClipboardContent(ctx context.Context, tconn *chrome.TestConn) (string, error)

GetClipboardContent retrieves the current clipboard content.

Types

This section is empty.

Jump to

Keyboard shortcuts

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