LAM doesn't click on different elements based on variables in my prompt

I am trying to create an action to read the status of NYC’s subway lines, given it’s something that’s often showing delays and alerts.

In my description, I entered “check the status of the [name] line”, and when I clicked the D line item in the page, I added the description indicating “click the icon for the [name] line”.

When executing with the description mentioning the E line, the log correctly shows “2 click the circular element representing the [E] line to view its status”, but the agent still clicks the D line.

Sometimes it fails with “3 Result: location_failure”.

1 Like