1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-21 01:21:34 +02:00
ferret/e2e/tests/el_attrs_d.fql
Tim Voronov 63dfcdeefd
Fixed dot notation for HTML elements (#239)
* Fixed dot notation for HTML elements
2019-02-25 21:46:39 -05:00

13 lines
268 B
Plaintext

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)