1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/dynamic/element/clear/clear_by_selector.fql

14 lines
323 B
Plaintext
Raw Normal View History

2018-11-12 21:53:36 +02:00
LET url = @dynamic + "?redirect=/forms"
LET doc = DOCUMENT(url, true)
WAIT_ELEMENT(doc, "form")
LET form = ELEMENT(doc, "#page-form")
INPUT(form, "#text_input", "foo")
INPUT_CLEAR(form, "#text_input")
2018-11-12 21:53:36 +02:00
LET input = ELEMENT(doc, "#text_input")
LET output = ELEMENT(doc, "#text_output")
RETURN EXPECT("", output.innerText)