github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/attrs/get.fql (about)

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, { driver: "cdp" })
     3  
     4  LET el = ELEMENT(doc, "#index")
     5  LET attrs = [
     6      el.attributes.class,
     7      el.attributes["data-type"]
     8  ]
     9  
    10  LET expected = '["jumbotron","page"]'
    11  LET actual = TO_STRING(attrs)
    12  
    13  T::EQ(actual, expected)
    14  
    15  RETURN NONE