github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/clear/clear_by_xpath.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/forms" 2 LET doc = DOCUMENT(url, true) 3 4 WAIT_ELEMENT(doc, "form") 5 6 LET form = ELEMENT(doc, "#page-form") 7 8 INPUT(form, "#text_input", "foo") 9 INPUT_CLEAR(form, X('//*[@id="text_input"]')) 10 11 LET input = ELEMENT(doc, "#text_input") 12 LET output = ELEMENT(doc, "#text_output") 13 14 T::EMPTY(output.innerText) 15 16 INPUT(form, "#text_input", "test0-test1", 100) 17 18 INPUT_CLEAR(form, X('//*[@id="text_input"]')) 19 20 T::EMPTY(output.innerText) 21 22 INPUT(form, "#text_input", "test0&test1", 100) 23 24 INPUT_CLEAR(form, X('//*[@id="text_input"]')) 25 26 T::EMPTY(output.innerText) 27 28 RETURN NONE