1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/e2e/tests/el_attrs_d.fql

13 lines
268 B
Plaintext
Raw Normal View History

LET url = @dynamic
LET doc = DOCUMENT(url, { driver: "cdp" })
LET el = ELEMENT(doc, "#index")
LET attrs = [
el.attributes.class,
el.attributes["data-type"]
]
LET expected = '["jumbotron","page"]'
LET actual = TO_STRING(attrs)
RETURN EXPECT(expected, actual)