1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/el_attrs.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
306 B
Plaintext

LET url = @static + '/overview.html'
LET doc = DOCUMENT(url)
LET el = ELEMENT(doc, "body > header > a")
LET attrs = [
el.attributes.class,
el.attributes.href
]
LET expected = '["navbar-brand mr-0 mr-md-2","http://getbootstrap.com/"]'
LET actual = TO_STRING(attrs)
RETURN EXPECT(expected, actual)