I am using nightwatch and trying to iterate over a list of items. However, when I do not get objects or elements, but get an array of strings.
CODE
browser.elements("css selector", ele, function(r){
browser.perform(function(){
console.log("LIST", r);
})
})
Return
LIST { sessionId: 'b273b874-c084-4d17-8bbe-a911a170ef25',
status: 0,
state: 'success',
value:
[ { ELEMENT: '6' },
{ ELEMENT: '7' },
{ ELEMENT: '8' },
{ ELEMENT: '9' },
{ ELEMENT: '10' },
{ ELEMENT: '11' } ],
class: 'org.openqa.selenium.remote.Response',
hCode: 995684858 }
value should return the webElements object correctly?
Thanks in advance
source
share