github.com/MontFerret/ferret@v0.18.0/pkg/drivers/cdp/templates/parent.go (about) 1 package templates 2 3 import ( 4 "github.com/mafredri/cdp/protocol/runtime" 5 6 "github.com/MontFerret/ferret/pkg/drivers/cdp/eval" 7 ) 8 9 const getParent = "(el) => el.parentElement" 10 11 func GetParent(id runtime.RemoteObjectID) *eval.Function { 12 return eval.F(getParent).WithArgRef(id) 13 }