Update chrome.js

This commit is contained in:
Namhyeon Go 2022-05-04 12:15:09 +09:00 committed by GitHub
parent 23fb7ddd0d
commit 571240805e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1237,8 +1237,8 @@ var ChromeObject = function(interfaces) {
return parseInt(this.getEvaluatedValue('document.querySelectorAll("' + selector + '").length'));
};
this.setValueOfInputs = function(type, s) {
this.evaluate('document.querySelectorAll("[type=' + type + ']").forEach(function(x){x.value = "' + s + '";})');
this.setValueOfSelectorAll = function(selector, s) {
this.evaluate('document.querySelectorAll("' + selector + '").forEach(function(x){x.value = "' + s + '";})');
};
this.sendEnterKey = function() {