(t *testing.T, c config)
| 975 | } |
| 976 | |
| 977 | func 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 | |
| 995 | func testFindElement(t *testing.T, c config) { |
| 996 | wd := newRemote(t, c) |
nothing calls this directly
no test coverage detected