mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
63dfcdeefd
* Fixed dot notation for HTML elements
13 lines
306 B
Plaintext
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) |