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

Function testCapabilities

remote_test.go:713–729  ·  view source on GitHub ↗

TODO(ekg): does this method work anymore in any browser? It is not part of the W3C standard.

(t *testing.T, c config)

Source from the content-addressed store, hash-verified

711// TODO(ekg): does this method work anymore in any browser? It is not part of
712// the W3C standard.
713func testCapabilities(t *testing.T, c config) {
714 if c.browser == "firefox" {
715 t.Skip("This method is not supported by Geckodriver.")
716 }
717 t.Skip("This method crashes Chrome?")
718 wd := newRemote(t, c)
719 defer quitRemote(t, wd)
720
721 caps, err := wd.Capabilities()
722 if err != nil {
723 t.Fatalf("wd.Capabilities() returned error: %v", err)
724 }
725
726 if strings.ToLower(caps["browserName"].(string)) != c.browser {
727 t.Fatalf("bad browser name - %s (should be %s)", caps["browserName"], c.browser)
728 }
729}
730
731func testSetAsyncScriptTimeout(t *testing.T, c config) {
732 wd := newRemote(t, c)

Callers

nothing calls this directly

Calls 3

newRemoteFunction · 0.85
quitRemoteFunction · 0.85
CapabilitiesMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…