Small fix for non-standard message
This commit is contained in:
parent
fb36efdc5e
commit
d056622e43
|
@ -49,7 +49,7 @@ WDElement >> attribute: attr [
|
||||||
WDElement >> attributes [
|
WDElement >> attributes [
|
||||||
| script result |
|
| script result |
|
||||||
script := 'var items = {}; for (index = 0; index < arguments[0].attributes.length; ++index) { items[arguments[0].attributes[index].name] = arguments[0].attributes[index].value }; return items;'.
|
script := 'var items = {}; for (index = 0; index < arguments[0].attributes.length; ++index) { items[arguments[0].attributes[index].name] = arguments[0].attributes[index].value }; return items;'.
|
||||||
result := driver sendWithSession: { #script -> script }
|
result := driver sendWithSession: { #script -> script . #args -> { 'element-6066-11e4-a52e-4f735466cecf' -> element } asDictionary }
|
||||||
to: 'element/' , element , '/execute/sync'
|
to: 'element/' , element , '/execute/sync'
|
||||||
using: #POST.
|
using: #POST.
|
||||||
^ result.
|
^ result.
|
||||||
|
|
Loading…
Reference in New Issue