Could you please let me know if it is possible to get a value of some index* object ( [WS] Get Element Property Value )? Or I need to parse json for this?
index of array in json
use case:
I have an array of objects in json (rest api response)
I need a value of [index] object
I try to use a variable. I am not sure if the syntax is a problem or it is just not possible with
[WS] Get Element Property Value
…you already initialized the track = 33 variable so you don’t have to use the sneaky ${} interpolation, which is for other use cases (e.g. in parametrized fields)
just do tracksData[track].wear_in in your code snipet as the 'track` variable now already have the value of your intended index
Ah, my bad. You are using the getElementPropertyValue keyword which needs a string as an argument for the locator … so indeed you may need interpolation.
However for this to work you have to use double quotes.