зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1070307: have findElements return an array of objects with a key instead of just an array of strings; r=jgriffin
--HG-- extra : rebase_source : d6c80438d56dedb8f4b907f48ba568231424552b
This commit is contained in:
Родитель
c38b87fe5d
Коммит
ebdcfaf1cc
|
@ -1397,7 +1397,7 @@ class Marionette(object):
|
|||
assert(isinstance(response, list))
|
||||
elements = []
|
||||
for x in response:
|
||||
elements.append(HTMLElement(self, x))
|
||||
elements.append(HTMLElement(self, x['ELEMENT']))
|
||||
return elements
|
||||
|
||||
def get_active_element(self):
|
||||
|
|
|
@ -310,6 +310,7 @@ ElementManager.prototype = {
|
|||
result = [];
|
||||
for (let i = 0; i < val.length; ++i) {
|
||||
result.push(this.wrapValue(val[i]));
|
||||
|
||||
}
|
||||
}
|
||||
else if (val == null) {
|
||||
|
@ -470,7 +471,7 @@ ElementManager.prototype = {
|
|||
if (isArrayLike) {
|
||||
let ids = []
|
||||
for (let i = 0 ; i < found.length ; i++) {
|
||||
ids.push(this.addToKnownElements(found[i]));
|
||||
ids.push({'ELEMENT': this.addToKnownElements(found[i])});
|
||||
}
|
||||
on_success(ids, command_id);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче