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
Tim Voronov af1125c8e9
Added INPUT_CLEAR function (#366)
* Added INPUT_CLEAR function

* Fixed linting issue

* Fixed formatting
2019-09-01 16:09:35 -04:00

14 lines
323 B
Plaintext

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")
LET input = ELEMENT(doc, "#text_input")
LET output = ELEMENT(doc, "#text_output")
RETURN EXPECT("", output.innerText)