From 571240805eaa2350806fa60e09e9f0c530a0ebbf Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 4 May 2022 12:15:09 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/chrome.js b/lib/chrome.js index 51d98d3..817c3fa 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -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() {