MCPcopy Index your code
hub / github.com/tebeka/selenium / boolCommand

Method boolCommand

remote.go:300–313  ·  view source on GitHub ↗
(urlTemplate string)

Source from the content-addressed store, hash-verified

298}
299
300func (wd *remoteWD) boolCommand(urlTemplate string) (bool, error) {
301 url := wd.requestURL(urlTemplate, wd.id)
302 response, err := wd.execute("GET", url, nil)
303 if err != nil {
304 return false, err
305 }
306
307 reply := new(struct{ Value bool })
308 if err := json.Unmarshal(response, reply); err != nil {
309 return false, err
310 }
311
312 return reply.Value, nil
313}
314
315func (wd *remoteWD) Status() (*Status, error) {
316 url := wd.requestURL("/status")

Callers 1

boolQueryMethod · 0.80

Calls 2

requestURLMethod · 0.95
executeMethod · 0.95

Tested by

no test coverage detected