Closed StrollStars closed 1 year ago
(() => {
let input = document.querySelector('#wp-filter-search-input');
input.value = searchTerms;
input.dispatchEvent(new KeyboardEvent('keypress', {key: "Enter"}));
})();
@ssborbis Thank you very much.
Some websites need to press the Enter key to start searching after entering keywords, and there is no search button, such as this one. @7peanuts 也请帮忙看下如何发送回车键。