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

Function testGetAttributeNotFound

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

Source from the content-addressed store, hash-verified

1588}
1589
1590func 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
1607func testActiveElement(t *testing.T, c config) {
1608 if c.browser == "htmlunit" {

Callers

nothing calls this directly

Calls 5

newRemoteFunction · 0.85
quitRemoteFunction · 0.85
GetMethod · 0.65
FindElementMethod · 0.65
GetAttributeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…