How to create Notepad files?

I’m trying to create Notepad files before building a workflow in 4.5 Debugging selectors in lab exercise manual.
Can anyone help?

Hi @Sara_Piana

Certainly, I can help you with creating Notepad files in UiPath as part of your debugging selectors exercise. Here are the steps to create a Notepad file using UiPath:

  1. Open UiPath Studio: Launch UiPath Studio, and either create a new project or open an existing one where you want to add this functionality.
  2. Create a Sequence: In your workflow, create a new Sequence. You can do this by right-clicking on the root of your workflow and selecting “Add Sequence.”
  3. Add Open Application Activity: Drag and drop the “Open Application” activity into your Sequence. This activity is used to open Notepad.
  4. Configure the Open Application Activity:
  • In the “ApplicationPath” field, provide the path to the Notepad executable. The typical path is C:\Windows\System32\notepad.exe.
  • You can also set the “Selector” property to make sure UiPath opens the correct Notepad window.
  1. Add Type Into Activity: Drag and drop the “Type Into” activity into your Sequence. This activity will simulate typing in the Notepad window.
  2. Configure the Type Into Activity:
  • In the “Text” field, enter the text you want to write in the Notepad file. For example, you can type “Hello, World!”.
  • Indicate the target field (Notepad) by using the “Indicate on Screen” option or selecting a selector that corresponds to the Notepad text area.
  1. Add Click Activity: Drag and drop the “Click” activity into your Sequence. This activity will simulate clicking on the Notepad save button.
  2. Configure the Click Activity:
  • Indicate the target element (the Notepad save button) using the “Indicate on Screen” option or by selecting a selector that corresponds to the “Save” button in Notepad.
  1. Add Type Into Activity (for File Name): After clicking the save button, you’ll need to provide a file name. Add another “Type Into” activity.
  2. Configure the Type Into Activity (for File Name):
  • In the “Text” field, enter the desired file name, including the “.txt” extension, e.g., “MyFile.txt”.
  • Indicate the target field (the Notepad file name input field) by using the “Indicate on Screen” option or selecting a selector that corresponds to the file name input field.
  1. Add Click Activity (to Save the File): Add another “Click” activity to click on the “Save” button in the Save As dialog.
  2. Configure the Click Activity (to Save the File):
  • Indicate the target element (the “Save” button in the Save As dialog) using the “Indicate on Screen” option or by selecting a selector.
  1. Close Notepad (Optional): If you want to close Notepad after saving the file, you can add an “Close Application” activity and configure it to close Notepad.
  2. Run the Workflow: Save your workflow and run it to create the Notepad file with the specified text.

Remember to validate and fine-tune your selectors to ensure that they work reliably. You can use the UiExplorer tool in UiPath to inspect and edit selectors if needed.

Thanks!!

Hi @Sara_Piana

To create notepad files manually please find below image

Hi @Sara_Piana ,
image
Have you tried?
regards,

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