mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-12 19:16:40 +00:00
UI - Browser Steps - "Click X,Y" should focus on the input field also
This commit is contained in:
@@ -221,7 +221,7 @@ $(document).ready(function () {
|
|||||||
// If you switch to "Click X,y" after an element here is setup, it will give the last co-ords anyway
|
// If you switch to "Click X,y" after an element here is setup, it will give the last co-ords anyway
|
||||||
//if (x['isClickable'] || x['tagName'].startsWith('h') || x['tagName'] === 'a' || x['tagName'] === 'button' || x['tagtype'] === 'submit' || x['tagtype'] === 'checkbox' || x['tagtype'] === 'radio' || x['tagtype'] === 'li') {
|
//if (x['isClickable'] || x['tagName'].startsWith('h') || x['tagName'] === 'a' || x['tagName'] === 'button' || x['tagtype'] === 'submit' || x['tagtype'] === 'checkbox' || x['tagtype'] === 'radio' || x['tagtype'] === 'li') {
|
||||||
$('select', first_available).val('Click element').change();
|
$('select', first_available).val('Click element').change();
|
||||||
$('input[type=text]', first_available).first().val(x['xpath']).focus();;
|
$('input[type=text]', first_available).first().val(x['xpath']).focus();
|
||||||
found_something = true;
|
found_something = true;
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
@@ -305,7 +305,7 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
if ($(this).val() === 'Click X,Y' && last_click_xy['x'] > 0 && $(elem_value).val().length === 0) {
|
if ($(this).val() === 'Click X,Y' && last_click_xy['x'] > 0 && $(elem_value).val().length === 0) {
|
||||||
// @todo handle scale
|
// @todo handle scale
|
||||||
$(elem_value).val(last_click_xy['x'] + ',' + last_click_xy['y']);
|
$(elem_value).val(last_click_xy['x'] + ',' + last_click_xy['y']).focus();
|
||||||
}
|
}
|
||||||
}).change();
|
}).change();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user