Hi,
I am confused with a few tags. I want to save a URL link in the current tab in a text file on the desktop.
Example:
https://www.google.com in the “File.txt”.
{
“Command”: “open”,
“Target”: “https://google.com/”,
“Value”: “”
},
Hi,
I am confused with a few tags. I want to save a URL link in the current tab in a text file on the desktop.
Example:
https://www.google.com in the “File.txt”.
{
“Command”: “open”,
“Target”: “https://google.com/”,
“Value”: “”
},
Do you want to save the HTML source code or a screenshot?
Source code.
If I open the “File.txt” then there must be https://www.google.com in it.
You can save in csv not in txt file must use csvsave command
The reason I posted my code here is because I was confused. Now you are directing me to official link?
I posted the officially url to read the command to solve your problem
You really are “new”.
No i use 10 years imacros and now i use ui visioin rpa from 1 year
Yeah, I just figured out.
It is as @newuserkantu says, use csvSave to save the file. Now, to get the HTML code use sourceExtract: sourceExtract HTML mode - #6 by admin
sourceExtract |<html*</html>| !csvline
csvSave
saves whatever is in !csvline
. The only issue is that the HTML file has now a .csv extension, but that is of course no problem.
Another option:
Use XType
to send the CTRL+S and then ENTER keystrokes. This triggers the browser save page dialog.
To detect current url in tab i use this code
{
“Command”: “executeScript”,
“Target”: “return (window.location.href)”,
“Value”: “executeScript_Sandbox_result”
},
After it will be saved in variable and i can use it, save in csv, or manipulate it.
Hello, Thank you everyone. This helped me. However the csv files goes to an internal folder (for example in my case, it is AppData\Local\Google\Chrome\User Data\Default\File System\227\t\00) which I am sure will be something else next time I run it.To get it in some folder of my choosing I have to manually go to csv box and click on download icon for all csv files which is impractical since there will be 200 files and process may run multiple times a day. How can I automate this part as well.
Ui vision save in folder saved in settings, set a prefered folder in settings
I didn’t know I had to install FileAccess XModule. So I couldn’t find it in settings. I have installed it now and it works fine. However the time required for download has almost doubled. Will have to run it for a few times to know if it is because of the drive vs local storage or just one off. Thank you so much.