Generic selector for clicking in different Excel sheets

selector
studio

#1

Hi,

I am downloading an excel sheet from the web and performing work on it.

When i perform the activities on that specific excel sheet the bot works fine. But when i download a different excel sheet from the web the work stream doesn’t work. I checked the selector for the activity and it is referring to the old sheet.

Is there a way I can fix this, maybe by adding a generic selector?

The type of activity I need to perform is just clicking different bottoms in the menu bar. I am using the click function.

Thanks in advance,


#2

Hi,
Looks like your selector holds excel sheet name/title.
Try to use wildcard * or remove the sheet /title itself.
eg: <wnd app='excel.exe' cls='XLMAIN' title='Microsoft Excel - RPA Requirement' />

In place of title pass *
<wnd app='excel.exe' cls='XLMAIN' title='Microsoft Excel - *' />

If still same issue please attach selector .