I want to upload a file to a repository, and just have use the type into activity to write the filename.
Most of the time, the type into activity works perfectly. However, from time to time instead of fully empty the textbox field, it partially deletes the previously uploaded name, drags the remaining the text and writes the current filename as shown:
Fine
hope these steps would help you resolved this
–use SET TO CLIPBOARD activity and pass the string to be typed in as input
this will set our file name to clipboard
–now use a SEND HOT KEY activity and use key delete
–then another SEND HOT KEY activity with key as ctrl+v to paste the value from clipboard
like how we do with copy - paste
Why the type into activity with Send Window Message and Simulate Type with Empty property selected, does not solve the issue? Why this error is occuring intermittently?
yah it would actually work
but its purely based on the application that takes up the input with its element and this happens when we are trying to type a long or complex file paths (in terms of text)
–in that case to ensure that it works fine especially when replacing the text and a new one i preferred SEND HOT KEY with set text to clipboard…and it worked
Kindly try this and let know for any queries or clarification
Cheers @Fer
I placed 2 type into activities. In the first, text was set as String.Empty. In the second, I placed the filename. I runned the workflow some times, and I think this fixed the intermitent dragging text.
I tried the set text. With this solution, instead of saving the file into Environment.CurrentDirectory it saved into Downloads folder.