(t *testing.T, c config)
| 1588 | } |
| 1589 | |
| 1590 | func testGetAttributeNotFound(t *testing.T, c config) { |
| 1591 | wd := newRemote(t, c) |
| 1592 | defer quitRemote(t, wd) |
| 1593 | |
| 1594 | if err := wd.Get(serverURL); err != nil { |
| 1595 | t.Fatalf("wd.Get(%q) returned error: %v", serverURL, err) |
| 1596 | } |
| 1597 | elem, err := wd.FindElement(ByID, "chuk") |
| 1598 | if err != nil { |
| 1599 | t.Fatal("Can't find element") |
| 1600 | } |
| 1601 | |
| 1602 | if _, err = elem.GetAttribute("no-such-attribute"); err == nil { |
| 1603 | t.Fatal("Got non existing attribute") |
| 1604 | } |
| 1605 | } |
| 1606 | |
| 1607 | func testActiveElement(t *testing.T, c config) { |
| 1608 | if c.browser == "htmlunit" { |
nothing calls this directly
no test coverage detected
searching dependent graphs…