diff --git a/tests/element_handle_test.go b/tests/element_handle_test.go index 4dd91dd29..5a8e790b6 100644 --- a/tests/element_handle_test.go +++ b/tests/element_handle_test.go @@ -439,3 +439,15 @@ func TestElementHandlePress(t *testing.T) { require.Equal(t, "AbC", el.InputValue(nil)) } + +func TestElementHandleQuery(t *testing.T) { + t.Parallel() + + p := newTestBrowser(t).NewPage(nil) + p.SetContent(`
hello
`, nil) + + element, err := p.Query("bar") + + require.NoError(t, err) + require.Nil(t, element) +}