Issue with Click Activity that contain &

Hello Team,

We have an Excel file containing a list of items, such as:

  • Dtk
  • NDA & Yn

We are using a loop to read through these items and pass them as the aaname in a Click activity to interact with a web portal.

However, we are encountering an issue when an item contains an ampersand (&), like Example NDA & Yn. When the item contains this symbol, the Click activity is unable to properly identify the selector, and it fails to perform the click action.

Is there some resolution for the same

Thanks you

@NISHITHA,

Try encoding this value like this and then pass to aaname

Import the namespace System.Web in your xaml file

System.Web.HttpUtility.HtmlEncode("NDA & Yn")

Refer this thread for more info.

Thanks ashok its working now

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.