MCPcopy Create free account
hub / github.com/tebeka/selenium / SetAlertText

Method SetAlertText

remote.go:1108–1115  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

1106}
1107
1108func (wd *remoteWD) SetAlertText(text string) error {
1109 data, err := json.Marshal(map[string]string{"text": text})
1110 if err != nil {
1111 return err
1112 }
1113
1114 return wd.voidCommand("/session/%s/alert/text", data)
1115}
1116
1117func (wd *remoteWD) execScriptRaw(script string, args []interface{}, suffix string) ([]byte, error) {
1118 if args == nil {

Callers

nothing calls this directly

Calls 1

voidCommandMethod · 0.95

Tested by

no test coverage detected