mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
Added missed property in Document getter
This commit is contained in:
parent
e280005204
commit
ddfb7a20e8
10
e2e/tests/dynamic/doc/iframes/lookup.fql
Normal file
10
e2e/tests/dynamic/doc/iframes/lookup.fql
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
LET url = @dynamic + "?redirect=/iframe"
|
||||||
|
LET page = DOCUMENT(url, { driver: 'cdp' })
|
||||||
|
|
||||||
|
LET frames = (
|
||||||
|
FOR frame IN page.frames
|
||||||
|
FILTER frame.name == "nested"
|
||||||
|
RETURN frame
|
||||||
|
)
|
||||||
|
|
||||||
|
RETURN EXPECT(1, LENGTH(frames))
|
@ -94,6 +94,8 @@ func GetInDocument(ctx context.Context, doc drivers.HTMLDocument, path []core.Va
|
|||||||
switch segment {
|
switch segment {
|
||||||
case "url", "URL":
|
case "url", "URL":
|
||||||
return doc.GetURL(), nil
|
return doc.GetURL(), nil
|
||||||
|
case "name":
|
||||||
|
return doc.GetName(), nil
|
||||||
case "title":
|
case "title":
|
||||||
return doc.GetTitle(), nil
|
return doc.GetTitle(), nil
|
||||||
case "parent":
|
case "parent":
|
||||||
|
Loading…
Reference in New Issue
Block a user