From b6060ac90c038d423ebf6406763ae1c85f70cb58 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 2 Oct 2023 11:50:15 +0200 Subject: [PATCH] BrowserSteps - of type 'number' should use 'enter text in field' --- changedetectionio/static/js/browser-steps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/static/js/browser-steps.js b/changedetectionio/static/js/browser-steps.js index f2214e4a..5540ef5c 100644 --- a/changedetectionio/static/js/browser-steps.js +++ b/changedetectionio/static/js/browser-steps.js @@ -208,7 +208,7 @@ $(document).ready(function () { console.log(x); if (x && first_available.length) { // @todo will it let you click shit that has a layer ontop? probably not. - if (x['tagtype'] === 'text' || x['tagtype'] === 'email' || x['tagName'] === 'textarea' || x['tagtype'] === 'password' || x['tagtype'] === 'search') { + if (x['tagtype'] === 'text' || x['tagtype'] === 'number' || x['tagtype'] === 'email' || x['tagName'] === 'textarea' || x['tagtype'] === 'password' || x['tagtype'] === 'search') { $('select', first_available).val('Enter text in field').change(); $('input[type=text]', first_available).first().val(x['xpath']); $('input[placeholder="Value"]', first_available).addClass('ok').click().focus();