mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +00:00
Update chrome.js
This commit is contained in:
parent
23fb7ddd0d
commit
571240805e
|
@ -1237,8 +1237,8 @@ var ChromeObject = function(interfaces) {
|
||||||
return parseInt(this.getEvaluatedValue('document.querySelectorAll("' + selector + '").length'));
|
return parseInt(this.getEvaluatedValue('document.querySelectorAll("' + selector + '").length'));
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setValueOfInputs = function(type, s) {
|
this.setValueOfSelectorAll = function(selector, s) {
|
||||||
this.evaluate('document.querySelectorAll("[type=' + type + ']").forEach(function(x){x.value = "' + s + '";})');
|
this.evaluate('document.querySelectorAll("' + selector + '").forEach(function(x){x.value = "' + s + '";})');
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sendEnterKey = function() {
|
this.sendEnterKey = function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user