I couldn't find much information or useful examples to understand how this method works on a Javascript UI testing framework. I have the following element which is returned in an array:
console.log(elementarray[0]);
{ ELEMENT: '25',
'element-6066-11e4-a52e-4f735466cecf': '25',
selector: '[data="abc"]',
value: { ELEMENT: '25' },
index: 0 }
however when I run:
browser.elementIdText(elementarray[0].ELEMENT)
I see this:
{ state: 'success',
sessionId: 'af7ef2fb-7d1d-456e-ad14-c5c1fd9d83c2',
hCode: 1013623656,
value: '17:55',
class: 'org.openqa.selenium.remote.Response',
_status: 0 }
How exactly is browser.elementIdText working here, can anyone provide a simple explanation with an example pls. I see information here that I am not seeing when I log the first item in the array and surely the value of elementarray[0].ELEMENT is just 25 right? as it's shown in the first property of the object?
Thanks for any useful replies.