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

Method execute

remote.go:126–128  ·  view source on GitHub ↗

execute performs an HTTP request and inspects the returned data for an error encoded by the remote end in a JSON structure. If no error is present, the entire, raw request payload is returned.

(method, url string, data []byte)

Source from the content-addressed store, hash-verified

124// encoded by the remote end in a JSON structure. If no error is present, the
125// entire, raw request payload is returned.
126func (wd *remoteWD) execute(method, url string, data []byte) (json.RawMessage, error) {
127 return executeCommand(method, url, data)
128}
129
130func executeCommand(method, url string, data []byte) (json.RawMessage, error) {
131 debugLog("-> %s %s\n%s", method, filteredURL(url), data)

Callers 15

stringCommandMethod · 0.95
stringsCommandMethod · 0.95
boolCommandMethod · 0.95
StatusMethod · 0.95
NewSessionMethod · 0.95
CapabilitiesMethod · 0.95
QuitMethod · 0.95
CurrentURLMethod · 0.95
GetMethod · 0.95
findMethod · 0.95
CloseMethod · 0.95
MaximizeWindowMethod · 0.95

Calls 1

executeCommandFunction · 0.85

Tested by

no test coverage detected