utils

package
v0.0.0-...-21311fb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillOutAWSKeys

func FillOutAWSKeys(page *web.Page, accessKey string, secretKey string)

FillOutAWSKeys fills out AWS access and secret fields with given values

func FormatUrl

func FormatUrl(page *web.Page, prefix string) string

FormatUrl returns URL by appending given prefix to page base URL

func GetOpsCenterURL

func GetOpsCenterURL(page *web.Page) string

GetOpsCenterURL returns Ops Center page URL

func GetSiteServersURL

func GetSiteServersURL(page *web.Page, clusterName string) string

GetSiteServersURL returns cluster serve page URL

func GetSiteURL

func GetSiteURL(page *web.Page, clusterName string) string

GetSiteURL returns cluster page URL

func HasValidationErrors

func HasValidationErrors(page *web.Page) bool

HasValidationErrors checks if validation errors are present

func IsErrorPage

func IsErrorPage(page *web.Page) bool

IsErrorPage checks if error page is open

func IsFound

func IsFound(page *web.Page, className string) bool

IsFound checks if element selector matches any elements

func IsInstaller

func IsInstaller(page *web.Page) bool

IsErrorPage checks if installer page is open

func IsLoginPage

func IsLoginPage(page *web.Page) bool

IsLoginPage checks if login page is open

func Pause

func Pause(params ...time.Duration)

func PauseForComponentJs

func PauseForComponentJs()

func PauseForPageJs

func PauseForPageJs()

func PauseForServerListRefresh

func PauseForServerListRefresh()

func SelectRadio

func SelectRadio(page *web.Page, selector string, matches valueMatcher)

SelectRadio sets a value to select element

func SetDropdownValue

func SetDropdownValue(page *web.Page, classPath string, value string)

SetDropdownValue sets a value to dropdown element

func SetDropdownValue2

func SetDropdownValue2(page *web.Page, rootSelector, buttonSelector, value string)

SetDropdownValue2 sets a value to dropdown element There are 2 different controls that UI uses for dropdown thus each requires different handling

Types

This section is empty.

Jump to

Keyboard shortcuts

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