I am trying to read data from json file but I have some trouble. How can I get items from a json file to individual items?
My json file:
[
{
"UserName": "test@test.en",
"Password": "tests123"
}
]
My method:
element(by.name('username')).sendKeys(browser.params.UserName);
element(by.name('password')).sendKeys(browser.params.Password);
as a result i get
Failed: each key must be a number of string; got undefined