storeText command showing error

This is my storeText command:

 {
      "Command": "storeText",
      "Target": "xpath=//*[@id=\"root\"]/div/div[2]/div/div[2]/div/div[2]/div/div/div/div/div/div/div[2]/div/div/div/div[2]/div[2]/div/div[2]/div/div/strong",
      "Value": "strMonthYear",
      "Description": ""
    },

It is showing following error:

  • [error]

[Line 18]: Unexpected token (1:16)

What is the solution please?

Can you please post a test macro that we could run?

Thanks @ulrich for replying back to me.

Later on I found the actual problem. Actually the error was on line#19. Line#19 had IF condition and I did a mistake in the IF condition. Because of that issue, UI.Vision was showing error on line#18. What I found that whatever command I used in line#18 it was showing error.

1 Like