Hi, new to the desktop version!
I will be grateful if someone can help me with renaming the screenshot taken with the help of the desktop flow.
My flow is currently able to take a screenshot.
Solved! Go to Solution.
Hello @mithushalk
You can use the action "Get details of web page" to retreive the title of web page currently displayed in web browser.
For example, you can set the Image file path of screenshot to be saved using page title variable as below:
C:\Users\User01\Pictures\%WebPageProperty%.png
As a result, you will have an image file like this:
Please try it.
Thank you.
The default is to copy the screenshot to the clipboard, but if you change the "Save ScreenShot To:" option down to "File" then it gives you the option to rename it whatever you want and put it into the format of your choice.
Best of luck!
Hi @MichaelAnnis
Can you please share a demo if possible?
Also, is it possible to rename the screenshot based on the Website?
Ex - I open the Amazon website & get a screenshot of the website. The screenshot must be saved by the name "Amazon".
The "Take Screenshot" command:
The "Take screenshot of web page command":
If you have "Amazon" as a variable, you can put the variable in the text of the image file.
Possibly, something like: C:\Images\%Browser.Handle%.jpg
This would put the handle ID of the Browser instance as the filename.
Best of Luck!
Hello @mithushalk
You can use the action "Get details of web page" to retreive the title of web page currently displayed in web browser.
For example, you can set the Image file path of screenshot to be saved using page title variable as below:
C:\Users\User01\Pictures\%WebPageProperty%.png
As a result, you will have an image file like this:
Please try it.
Thank you.
Hi @mithushalk
I agree with both the solutions shared above in this thread.
I want to add another option for you to save the website name.
After you launch a website, set a variable for that website whose value for eg would be "Amazon".
and then use this variable to print in the screenshot file name.
Or if you do not know which website you are going to open because you are dynamically opening the website, for example, by reading from some spreadsheet, then either using string functions or regular expressions fetch the website part name from the URL you are launching www.amazon.com
Some websites have tag lines and punch lines in the title so doing this will give you only the website name.
Good day!
Hi @MichaelAnnis @VJR @Anonymous,
Thank you for the replies! My application is behaving wired so will check once that's fixed 😀
Hi,
I added steps as mentioned in the flow & checked but it threw an error.
You are trying the web page version. Are you trying to get a specific screenshot of a specific element, or are you trying to get the whole window. If you are trying to get the whole window, I would use the other version of "Take Screenshot".
User | Count |
---|---|
13 | |
7 | |
6 | |
6 | |
5 |
User | Count |
---|---|
17 | |
17 | |
15 | |
12 | |
11 |