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

Function testExecuteScriptWithNilArgs

remote_test.go:1393–1405  ·  view source on GitHub ↗
(t *testing.T, c config)

Source from the content-addressed store, hash-verified

1391}
1392
1393func testExecuteScriptWithNilArgs(t *testing.T, c config) {
1394 wd := newRemote(t, c)
1395 defer quitRemote(t, wd)
1396
1397 if err := wd.Get(serverURL); err != nil {
1398 t.Fatalf("wd.Get(%q) returned error: %v", serverURL, err)
1399 }
1400
1401 script := "return document.readyState"
1402 if _, err := wd.ExecuteScript(script, nil); err != nil {
1403 t.Fatal(err)
1404 }
1405}
1406
1407func testExecuteScriptOnElement(t *testing.T, c config) {
1408 wd := newRemote(t, c)

Callers

nothing calls this directly

Calls 4

newRemoteFunction · 0.85
quitRemoteFunction · 0.85
GetMethod · 0.65
ExecuteScriptMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…