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

Method stringsCommand

remote.go:285–298  ·  view source on GitHub ↗
(urlTemplate string)

Source from the content-addressed store, hash-verified

283}
284
285func (wd remoteWD) stringsCommand(urlTemplate string) ([]string, error) {
286 url := wd.requestURL(urlTemplate, wd.id)
287 response, err := wd.execute("GET", url, nil)
288 if err != nil {
289 return nil, err
290 }
291
292 reply := new(struct{ Value []string })
293 if err := json.Unmarshal(response, reply); err != nil {
294 return nil, err
295 }
296
297 return reply.Value, nil
298}
299
300func (wd *remoteWD) boolCommand(urlTemplate string) (bool, error) {
301 url := wd.requestURL(urlTemplate, wd.id)

Callers 1

WindowHandlesMethod · 0.95

Calls 2

requestURLMethod · 0.95
executeMethod · 0.95

Tested by

no test coverage detected