1 goto: file://|DOC_PATH|/test_docs/index.html
2 write: (".search-input", "Foo")
3 // Waiting for the search results to appear...
5 assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
7 // To go back to the original "state"
8 goto: file://|DOC_PATH|/test_docs/index.html
9 write: (".search-input", "-> String")
10 // Waiting for the search results to appear...
12 // With this search, only the last tab shouldn't be empty so it should be selected.
13 assert-attribute: ("#titles > button:nth-of-type(3)", {"class": "selected"})
15 // To go back to the original "state"
16 goto: file://|DOC_PATH|/test_docs/index.html
17 write: (".search-input", "-> Something")
18 // Waiting for the search results to appear...
20 // With this search, all the tabs are empty so the first one should remain selected.
21 assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})