Value doesnot fall in expected range - SAP Automation

Hi

I was using Automation in Windows Legacy Framework.Where my SAP activities worked properly.After a while i converted windows legacy to windows framework.
Post which when i am testing the robot.I am geting an error “Value doesnot fall in expected range”.For Some of the Select SAP Menu Item Activity across the Process.Tried validating the selectors they remain same.
Could Someone help with this please?

@JITU99

Did you try switching the activites also to the modern activities? can you please try it

Alternately try upgrading the packages as well from Manage packages

cheers

I am already using Modern Activites .No where classic activites were used.

Also I upgraded and downgraded packages and tried still same issue.

@JITU99

Can you run in debug mode and check the inner exception details from locals panel…that might give you more info on what exactly failed…and the error is not because of selector…but might be because of the value your are trying to pass or use

Cheers

On trying in debug mode there is not much information available it says only "System.Argument Exception : Value doesnot fall in expected range ".I checked the arguments as well everything looks as expected.
Not sure where it went wrong.Any further ideas or inputs?

@JITU99

May I know at what activity it is failing…is it possible to attach a screnshot or project files here

Cheers

It is failing at Select SAP Menu Activity(I tried continue on error to bypass :stuck_out_tongue: )
But there should be a way to get this fixed.
Attached the screenshot if you can find something.

I see that the SAP Select Menu Item activity is used on what seems to be a simple ComboBox element, for this use case a simple Select Item activity should be the correct approach.

The SAP Select Menu Item activity is designed to be used for SAP Menus and Toolbars such as these: