How can I resolve below issue of multiple similar matches found in image

I need help to resolve issue of multiple similar matches found. The drug search popup box lists the drugs and does not have dropdown for selection. Also, how can I fix it to where the changing drug name will be selected correctly each time.

Hello @choppers1868 ,
Instead of using Select Item because this popup isn’t a standard dropdown try using a dynamic selector approach. Here’s how:

  1. Anchor to the list container of the popup.
  2. Use Click Text or Find Element activities.
  3. Inject the drug name dynamically with CurrentRow("Drug Name").ToString.

This method ensures that your automation reliably selects the correct drug, even when the name changes, and avoids the “multiple similar matches found” issue.

Best regards,
Ghaith

I cdn’t get Click Text or Find Element activities to work.

Use dynamic innertext selector

  1. Open Select Drug Name activity.
  2. Indicate on screen, then edit Selector.
  3. Replace the static drug text with a variable: You can just select and right click on the static text, you can select required variable or create a new variable.
    Eg:
<webctrl tag='TD' innertext='{{CurrentRow("Drug Name").ToString}}' />

Avoid index-based selection

Ensure exact match with .Equals() if using Find Children

Activities - Dynamic Selectors

@choppers1868

Follow the below steps,

  1. Click on the dropdown (List of items will be shown) using click activity.
  2. Take one more click activity, Indicate your option that need to select.(if it changes frequently then use variable ). To indicate your option open UiExplorer there you can select proper attributes that can relate to your item name.

Happy Automation!

For step 2, do I edit Selector from Selector Option panel before confirming ui element with anchor or from activities properties panel (as in screenshot)?