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

Function testPageSource

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

Source from the content-addressed store, hash-verified

975}
976
977func testPageSource(t *testing.T, c config) {
978 wd := newRemote(t, c)
979 defer quitRemote(t, wd)
980
981 if err := wd.Get(serverURL); err != nil {
982 t.Fatal(err)
983 }
984
985 source, err := wd.PageSource()
986 if err != nil {
987 t.Fatal(err)
988 }
989
990 if !strings.Contains(source, "The home page.") {
991 t.Fatalf("Bad source\n%s", source)
992 }
993}
994
995func testFindElement(t *testing.T, c config) {
996 wd := newRemote(t, c)

Callers

nothing calls this directly

Calls 4

newRemoteFunction · 0.85
quitRemoteFunction · 0.85
GetMethod · 0.65
PageSourceMethod · 0.65

Tested by

no test coverage detected