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