Update chrome.js

This commit is contained in:
Namhyeon Go 2022-01-02 18:22:45 +09:00 committed by GitHub
parent 8e27eeeec6
commit ada2db6f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -843,6 +843,10 @@ var ChromeObject = function() {
return parseInt(this.getEvaluatedValue(s)); return parseInt(this.getEvaluatedValue(s));
}; };
this.getElementCount = function(selector) {
return this.getEvaluatedValue('document.querySelectorAll("' + selector + '").length');
};
this.getPageHeight = function() { this.getPageHeight = function() {
var height = 0; var height = 0;