From ada2db6f77a79cc710d91b45551fc7778c704e17 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 2 Jan 2022 18:22:45 +0900 Subject: [PATCH] Update chrome.js --- lib/chrome.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/chrome.js b/lib/chrome.js index 47d8802..d6db801 100644 --- a/lib/chrome.js +++ b/lib/chrome.js @@ -843,6 +843,10 @@ var ChromeObject = function() { return parseInt(this.getEvaluatedValue(s)); }; + this.getElementCount = function(selector) { + return this.getEvaluatedValue('document.querySelectorAll("' + selector + '").length'); + }; + this.getPageHeight = function() { var height = 0;