New member of the community here trying to learn this awesome technology! Currently going through the RPA course on Udemy by Marcelo Cruz . One of the exercises calls for creating a bot that opens Notepad and writes “Hello world!” in the notepad file. I’m having trouble writing the “Hello world!” to Notepad. here are the steps I’m taking
Used OpenRPA to open notepad. I used the “select Element” button while Notepad is open to select the window. This succesfully opens notepad when I run the robot
I inserted a Get Element (OpenRPA.Windows) in my workflow. I clicked on Open Selector and clicked inside the text area of Notepad.
I deleted the Click Element that comes default as part of Get Element
I inserted Assign activity within the Get Element and use item.Value to assign value to the text area of Notepad
When I run the bot, Notepad opens but not text appears inside Notepad.
Would appreciate your input on why this might be happening. Also please let me know if I shoud provide anything else to troubleshoot. Thank you
A common issue with this example is notepad changes the title of the window ( and there for also the selecgbtor ) when you add text to it.
If you add a star * after the window name/title in the selector it should work again.
So in openrpa selectors, * means “everything”. So it is kind of lucky for us, notepad decided to add a * when the document changes, it means this new selector can find the window weather you updated the document or not. ( you could also just remove the name part completely, then it would find any notepad window. If you know there is never more than one notepad windows open when you want to run your workflow it does not matter what the document title is )
Sorry I’m not following. Do you mean I cannot physically modify the code that appears in the Open Selector window? I thought you said I needed to edit the “Name”: (or another field in the Selector window) with a star * ?
Sorry, I was not clear.
No, the selector you pasted in, does not select the Text field inside notepad, it selects a window. It makes no sense to assign a value to a window. You need to modify ( you can use the tree view and right click on the node you want or click the select button and select it ) to select an element of the type “edit” ( if you are on windows 10, I’m unsure if it’s the same element type on windows 11 )
You could also just click “record” again, and then record adding text to notepad, by clicking on the text area inside notepad. Then openrpa should prompt you for a text to add and only if you click Escape, will it convert it to a click
Thank you !
It seems notepad has change a bit since i last was on windows 11, it looks like the text area is not visible until you click it.
Could you open the selector, click sync and in the tree view expand the 3 panes and see if the text area control is under one of those?
@Allan_Zimmermann I had the same problem, and in my case I didn’t find the “textarea” by inspecting the 3 pane.
The first pane is the “tab” with title, secound pane is menu and third pane is footer. The “textarea” was never detected.
@Felipe_Carrillo Yes … the course from “Marcelo”! @Allan_Zimmermann I think this is hapenning only in windows 11, I tested in windows 10 and I was able to make it work.
On windows 11, I used other software (AkelPad) to edit a bunch of txt files and works.