calc

package
v0.0.0-...-9474aff Latest Latest
Warning

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

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

Documentation

Overview

Package calc contains common functions used in the Calculator app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TapKey

func TapKey(appConn *chrome.Conn, keyName string) uiauto.Action

TapKey taps key on the app by executing click function on located web element. keyName is aria-label of the element, not displayed text. e.g. Do not use '+' but 'plus'.

func UIConn

func UIConn(ctx context.Context, cr *chrome.Chrome) (*chrome.Conn, error)

UIConn returns a connection to the Calculator app HTML page, where JavaScript can be executed to simulate interactions with the UI. The caller should close the returned connection. e.g. defer calcConn.Close().

func WaitForCalculateResult

func WaitForCalculateResult(appConn *chrome.Conn, expectedResult string) uiauto.Action

WaitForCalculateResult waits until the calculation result is expected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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