Skip to content

Commit

Permalink
BrowserSteps - <input> of type 'number' should use 'enter text in field'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Oct 2, 2023
1 parent 5cccccb commit b6060ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changedetectionio/static/js/browser-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b6060ac

Please sign in to comment.