Difficulty Clicking on 'File' and 'Save As' in Notepad - Automation Challenge

Hello UiPath Community,

I’m currently facing an issue while automating Notepad. After successfully opening Notepad, I’m trying to click on the ‘File’ menu and then select ‘Save As’. However, using the ‘Click’ activity seems to interact with the toolbar instead of the menu.

I’ve tried adjusting the selectors and using other methods like ‘Click Image’, but I’m still facing challenges. Any advice on how to precisely click on the ‘File’ menu and navigate to ‘Save As’?

Your expertise and guidance would be highly appreciated.

Thank you!
Captura de pantalla 2024-01-29 214940

Hello @juanjose.implicate827 Welcome to the UiPath Community

I assume there must be some selector issue.

Kindly review the attach view for Notepad automation from “UiPath By Sujitha” - Notepad Automation

Also, I kindly request you to go through UiPath Selectors concept.

Thanks

I managed to click on files…

but now I have another problem, and that is that I saw the video that you gave me, the person who made that video makes it very easy and everything goes well…

but I have problems, and is that I get an error when I want to give to SAVE AS.

The error you are seeing is a UiPath exception related to UI automation. The message indicates that UiPath cannot get the rectangle from the screen for the UI node and suggests that a possible reason is that the element is not visible.

It’s like it doesn’t detect the save as, since to see it you have to hit file, but for some reason once you hit file then it doesn’t detect save as, and I don’t know why.

Captura de pantalla 2024-01-29 232734

Hi @juanjose.implicate827

Please check the below thread

Regards

1 Like

I have already solved the save as
thank you very much

but there is another thing that happens to me, I do not know if it is a failure of ui path or is something that I have to do to save.

I am doing an automation that is very basic and it is to open a notepad, write 2 lines of text, click on files and save as…

the automation works perfectly, but there are times that it stays waiting and it does not open the notepad, that is to say when I give to PURGE FILE or execute file, the notepad opens, but it does not write the lines of texts, it is rare, because there are times that if and others that not, it stays like caught the automation.

Error: System.InvalidOperationException: El ejecutor está ocupado
   at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.TakeOwnership(ExecutionStartOptionsSlim startOptions)
   at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.StartAsync(ExecutionStartOptionsSlim startOptions)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.RobotStudioBridge.Start(ExecutionStartOptionsSlim startOptions)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.CodedWorkflowExecutorBridge.Start(ExecutionStartOptionsSlim startOptions)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartJob(ExecutionConfig config)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartExecutionAsync(ExecutionConfig config)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartExecution(ExecutionConfig config)
   at UiPath.Studio.Shell.Execution.Services.ExecutionManagerBaseService.TryStartExecution(ExecutionConfig executionConfig, Boolean validate)
   at UiPath.Studio.Shell.Execution.Services.ExecutionManagerService.<>c__DisplayClass26_0.<<ProcessExecutionCommand>g__StartExecutionAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
   at UiPath.Studio.Shell.Execution.Services.ExecutionManagerService.ProcessExecutionCommand(ExecutionCommand command, Object item, ExecutionParameters executionParameters)
   at UiPath.Studio.Shell.ViewModels.DebugTabViewModel.ExecuteRunCurrentFileAsync()
   at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233079

it is an error that asks me to restart the ui path…

then I do not understand, since the automation is going well because it works perfectly, but sometimes it does not perform the automation well because the program hangs, and I have to stop or restart or run it again.

Hi @juanjose.implicate827

Can you share the workflow xaml.

Regards

what do you mean by xaml?
How do I pass it to you?

How do I look for it?

Hi @juanjose.implicate827

Share your project file.

Regards

Main.xaml (14,7 KB)

Hi @juanjose.implicate827,

Thanks for reaching out UiPath Community.

Instead of Using Click Activity,
Can you try using Send Hotkey/ Keyboard Shortcut.

It is working for me.
Hope this works for you.

Happy Automation,
@Vinit_Kawle

thank you… the answer you have given me is to solve the save as?

I already solved it, but above I put another problem that I have and I don’t know why it occurs.

Could you tell me why?

Hi @juanjose.implicate827

Try restarting the studio and also if still the issue persists the try the flow in debug mode and check if the issue still continues. Don’t forget to restart the studio once. Thank You

Regards

at the beginning it works correctly, it makes the perfect automation, but there comes a moment especially when I close the notepad that does not work anymore, and it starts to stop and fail.

I get the error and it asks me to restart, I press restart and I get the same error:

Error: System.InvalidOperationException: El ejecutor está ocupado
   at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.TakeOwnership(ExecutionStartOptionsSlim startOptions)
   at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.StartAsync(ExecutionStartOptionsSlim startOptions)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.RobotStudioBridge.Start(ExecutionStartOptionsSlim startOptions)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.CodedWorkflowExecutorBridge.Start(ExecutionStartOptionsSlim startOptions)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartJob(ExecutionConfig config)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartExecutionAsync(ExecutionConfig config)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartExecution(ExecutionConfig config)
   at UiPath.Studio.Shell.Execution.Services.ExecutionManagerBaseService.TryStartExecution(ExecutionConfig executionConfig, Boolean validate)
   at UiPath.Studio.Shell.Execution.Services.ExecutionManagerService.<>c__DisplayClass26_0.<<ProcessExecutionCommand>g__StartExecutionAsync|1>d.MoveNext()
--- End of stack trace from previous location ---
   at UiPath.Studio.Shell.Execution.Services.ExecutionManagerService.ProcessExecutionCommand(ExecutionCommand command, Object item, ExecutionParameters executionParameters)
   at UiPath.Studio.Shell.Execution.ViewModels.DebugViewModel.ExecuteDebugAsync(IPersistableItem item, ExecutionParameters executionParameters)
   at UiPath.Studio.Shell.ViewModels.DebugTabViewModel.ExecuteDebugProject()
   at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233079

I also click on debug, and it continues as stopped, i.e. it does not perform the automation: also marks me errore type: Use Application: Untitled: Notepad: Timed out.

Hi @juanjose.implicate827 ,

Please check the selector, and uncheck the ‘title’ attribute.

Hie @juanjose.implicate827 for this you can use also Send hotkey activity just pass ctrl +shift+s key …
image

it will work
cheers Happy Automation …

You can try sending short of file menu and save as
Just click on. Notepad window before sending the short cut key
@juanjose.implicate827