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

Method stringCommand

remote.go:250–267  ·  view source on GitHub ↗
(urlTemplate string)

Source from the content-addressed store, hash-verified

248}
249
250func (wd *remoteWD) stringCommand(urlTemplate string) (string, error) {
251 url := wd.requestURL(urlTemplate, wd.id)
252 response, err := wd.execute("GET", url, nil)
253 if err != nil {
254 return "", err
255 }
256
257 reply := new(struct{ Value *string })
258 if err := json.Unmarshal(response, reply); err != nil {
259 return "", err
260 }
261
262 if reply.Value == nil {
263 return "", fmt.Errorf("nil return value")
264 }
265
266 return *reply.Value, nil
267}
268
269func voidCommand(method, url string, params interface{}) error {
270 if params == nil {

Callers 10

CurrentWindowHandleMethod · 0.95
TitleMethod · 0.95
PageSourceMethod · 0.95
AlertTextMethod · 0.95
ScreenshotMethod · 0.95
TagNameMethod · 0.80
TextMethod · 0.80
GetAttributeMethod · 0.80
CSSPropertyMethod · 0.80
ScreenshotMethod · 0.80

Calls 2

requestURLMethod · 0.95
executeMethod · 0.95

Tested by

no test coverage detected