(t *testing.T, c config)
| 1323 | } |
| 1324 | |
| 1325 | func testLocationInView(t *testing.T, c config) { |
| 1326 | wd := newRemote(t, c) |
| 1327 | defer quitRemote(t, wd) |
| 1328 | |
| 1329 | if err := wd.Get(serverURL); err != nil { |
| 1330 | t.Fatalf("wd.Get(%q) returned error: %v", serverURL, err) |
| 1331 | } |
| 1332 | button, err := wd.FindElement(ByID, "submit") |
| 1333 | if err != nil { |
| 1334 | t.Fatal(err) |
| 1335 | } |
| 1336 | |
| 1337 | loc, err := button.LocationInView() |
| 1338 | if err != nil { |
| 1339 | t.Fatal(err) |
| 1340 | } |
| 1341 | |
| 1342 | if loc.X == 0 || loc.Y == 0 { |
| 1343 | t.Fatalf("Bad location: %v\n", loc) |
| 1344 | } |
| 1345 | } |
| 1346 | |
| 1347 | func testSize(t *testing.T, c config) { |
| 1348 | wd := newRemote(t, c) |
nothing calls this directly
no test coverage detected
searching dependent graphs…